steveddei

Display Chart as Image

Recommended Posts

Hi, I have a page with 50+ dynamically created charts using javascript encodeDataURL and renderChart functions along with php to generate the xml data.

I was having problem with the charts not all drawing completely until i disable the cache by using

encodeDataURL("data_el_otd_12m.php?, true);

My problem is that it is still taking a long time to display all the charts. Is it possible to auto generate the chart jpg on first load, then use those images from then on in place of the flash?

Most likely i would want to name the chart jpg with the date and only regenerate the charts if the date is old x amount of days.

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

This is the recommended modus operandi, i.e. as a maximum number- 30+ charts display on a single page. Otherwise it'll always have a problem loading all the charts, as you have noted in the removal of the cache memory.

Furthermore, exporting images in PHP is not supported, as yet. However, this feature is available in .NET, where you have to render the charts client-side before exporting the images server-side.

 

Share this post


Link to post
Share on other sites

Is this a limitation of flash/browser then? I understand this is a lot for a browser to process.

I also have the FusionWidget license, do you know if using the small Spark Charts would be any better?

 

BTW i noticed that my php package includes a FCExporter_IMG.php file. wont this handle the export?

if so, i can export and save on the server. if the image is located on the server, i could display the image, if not, i could render the chart. will that file work?

Edited by Guest

Share this post


Link to post
Share on other sites

Hi

 
Is this a limitation of flash/browser then? I understand this is a lot for a browser to process.
>>>>> Yes, you are right.
 
I also have the FusionWidget license, do you know if using the small Spark Charts would be any better?
>>>>> Yes, it will give more stable result since it takes less memory. :)
 
BTW i noticed that my php package includes a FCExporter_IMG.php file. wont this handle the export? if so, i can export and save on the server. if the image is located on the server, i could display the image, if not, i could render the chart. will that file work?
>>>>> FCExporter_IMG.php can be used to save the chart image file in server, But you would need to render the chart.

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