Sign in to follow this  
nonshatter

How To Email A Fusionchart

Recommended Posts

Dear all,

 

I have a requirement for my PHP charting app which is to allow users to save a chart as a 'shortcut' and allow them to send periodic scheduled emails. E.g. (Send a specific chart via email every Monday at 8am)

 

I have read the FusionCharts FAQ which states the following:

 

"Can I email the charts? Yes - you can email the charts as ActiveX Objects. But, most of the modern day email clients wouldn't show the chart for security reasons, as it's an ActiveX object. However, using the new image save feature, you can just right click on chart, save it and send via email."

 

 

This is all rather vague, How do I make a chart an activeX object? Email clients obviously can't interpret/display the dynamic content. So presumably, the obvious way of doing this is to save the chart as an image and then send it. I'd like all of this to be automated on the server-side after the user clicks a button.

 

I'd like to hear from anyone who has got this kind of functionality to work. It seems like it would be a pretty common requirement, yet I can't seem to find any helpful documentation on this.

 

Any help is much appreciated,

Regards,

ns

Share this post


Link to post
Share on other sites
Guest Angie

Hi,

 

First of all, we would like to thank you for showing interest in FusionCharts.

 

FusionCharts loads in Flash player which is an ActiveX object itself.

 

To know how to export the chart and save the image on server side, please refer to the link below:

 

http://www.fusioncharts.com/docs/?ECJavaScript.html

http://www.fusioncharts.com/docs/?ECServerSave.html

 

You would need to use your own code in order to implement the feature you are looking for.

 

Hope this helps.smile.gif

Share this post


Link to post
Share on other sites

That's fine, thank you for your response. I will look into this...

 

Just one other question... is there a way of displaying the .swf directly as an image format instead? E.g. Don't use flash at all, but instead display a .png (Which would involve no exporting to the server), and save me some work!

 

Many thanks,

ns

Share this post


Link to post
Share on other sites
Guest Angie

Hi,

 

I am afraid, FusionCharts does not support the feature you are looking for, at this time.

 

We have taken a note of your request here and added the same in our wishlist.

 

Hope you have a great day!

Share this post


Link to post
Share on other sites

I'm not sure if what I'm trying to do is even possible...

 

Yes, I can save the chart as a pdf, png etc. to disk and email it (which is manual). However, if I'm using a cron job to convert the chart to an image then I'm running into (expected) problems...

 

"Please note that in both cases, the chart first needs to render in a browser, before the bitmap snapshot can be sent to server for processing. You CANNOT directly generate an image of chart on server, without actually rendering it in browser."

 

Does anyone know of a PHP tool which can spawn a 'virtual browser' and send automated requests (E.g. Render the chart and save as an image)?

 

I've previously used a similar library using Perl called LWP::UserAgent

Share this post


Link to post
Share on other sites

Hi,

 

I am afraid, FusionCharts currently do not have any PHP solution to save the image without rendering the chart on the browser.

 

However, we currently support such an Image saver assembly for .Net framework.

 

In case that solves your purpose, please send us a request at http://www.fusioncharts.com/contact stating your Order ID.

 

Hope this helps. <_<

 

Looking forward to your mail.

Share this post


Link to post
Share on other sites

Hi,

 

I am afraid, FusionCharts currently do not have any PHP solution to save the image without rendering the chart on the browser.

 

However, we currently support such an Image saver assembly for .Net framework.

 

In case that solves your purpose, please send us a request at http://www.fusioncharts.com/contact stating your Order ID.

 

Hope this helps. <_<

 

Looking forward to your mail.

 

Hi,

has this feature been implemented for php yet?

 

I am also after same solution. I need to send graph in email via cron.

 

Many thanks,

Edited by Heena

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi,

 

Please note that FusionCharts does not support "automatically exporting the chart image/PDF, save it in the server and email" feature as of now.

 

However, as like Image Saver Assembly for .NET Framework, we do have "FCImg" for PHP, which is a third party tool for exporting FusionCharts Charts as images without rendering in the browser.

 

For more information on "FusionCharts Server-Side Export", please follow the link below:

http://fcimg.org/

 

Hope this helps !

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
Sign in to follow this