FusionCharts Support

Problem serverside image saving - latest rev 3.1

Recommended Posts

I have implemented a Python side image download. This is working well, thanks to schmichael. The problem that I am having is with the actual post from the chart swf.

 

 

 

The color values passed are not correct for all of the chart. I am using the provided SelectedFormats example.

 

 

 

I have attached the original and the exported image.

 

 

 

XML:

 

 

 

chart yAxisName='Sales Figure' caption='Top 5 Sales Person' numberPrefix='$' useRoundEdges='1' bgColor='FFFFFF,FFFFFF' showBorder='0' exportEnabled='1' exportAtClient='0' exportAction='download' exportHandler='http://test.server/fcexporter/saveImage/' exportFileName='MyFileName' >

 

 

 

 

 

 

 

 

post-1447-128441571209_thumb.png

post-1447-128441571233_thumb.png

Edited by Guest

Share this post


Link to post
Share on other sites

Hi,

 

 

 

The chart passes exact color values to the image sading code. You can tet this using php/asp.net script too.

 

 

 

The issue here might lie in the color conversion and building up image binary code of python where some values are not being parsed or set properly. We faced similar issue while developing code in JSP too and have solved the issue.

 

 

 

Please pose the code here so that we can have a look/debug and revert back as soon as possible.

Share this post


Link to post
Share on other sites

The python code was the first place I looked and dumped the stream variable and saw that the colors were incorrect in the raw data. After that I used live http to capture the actual post from the flash object and saw the same incorrect colors.

 

 

 

I have attached the live http image, python code and also the post parameters.

post-1447-128441571288_thumb.png

post.txt

python.txt

Share this post


Link to post
Share on other sites

Hi,

 

 

 

Could you please help us sending the whole python code so that the debuggin process gets faster?

 

 

 

Please also mention the environment, OS, python version, apache version or any other thing like whether you are using mod_python etc.

 

 

 

Please also send us the XML and chart width and heigh that you are using tp pin point on the issue.

Share this post


Link to post
Share on other sites

The problem I am seeing is not on the server side.  I can recreate the issue by just using the sample code (C:sourceFusionCharts_EnterpriseCodeExportChartSamplesServerSideSelectedFormats.html) without calling a valid server side script.

I have captured the post using live http and have created an image.txt file with the parameters from the post.  I have seperated the start of where the colors are incorrect.

I have attached the sample files I am using and the client side post data

============================================

System:   Windows XP Prof SP3

Browser:   Firefox 3.0.9

 

============================================

 

Chart:   Column3D.swf

Height: 300

Width:   400

SelectedFormats.html.txt

SelectedFormats.xml

image.txt

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now