Sign in to follow this  
bagus sutan

Export Chart with Button

Recommended Posts

Hi,

 

I'm trying to export realtime chart using button with the example given:

 

 

function ExportMyChart() {

 

var chartObject = getChartFromId('chartStag');

 

if( chartObject.hasRendered() )

 

chartObject.exportChart(); }

 

 

and come up with the follwing error:

 

 

 

Line: 106

 

Error: Object doesn't support this property or method

 

 

 

which line 106 is:

 

if( chartObject.hasRendered() )

 

 

 

any idea why?

 

 

 

Regards,

 

 

 

 

 

Bagus sutan

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi BAgus,

Could you please send us the sample code that you are using?

Awaiting your reply. :)

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

In your export function please check if you have provided the id of the chart to get the reference of the chart object from its id.

function ExportMyChart() {

 var chartObject = getChartFromId(Id of the chart);

 if( chartObject.hasRendered() )

 chartObject.exportChart();   }

Share this post


Link to post
Share on other sites

Hi,

 

 

 

as you can check my file, i think i've supplied the id as:

 

 

function ExportMyChart() {

 

var chartObject = getChartFromId('chartStag');

 

if( chartObject.hasRendered() )

 

chartObject.exportChart(); }

 

 

 

 

and the chart id for that div is:

 

This text is replaced by the Flash movie.

 

 

 

Awaiting your reply.

 

 

 

Regards,

 

 

 

 

 

Bagus Sutan

Edited by Guest

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello Bagus,

In the sample file you attached the id of the chart provided by you is ChID. and the chart object is named as chartStag.

Share this post


Link to post
Share on other sites
Guest Madhumita

Hi,

You are most welcome.

I am glad that your issue has been resolved.

Happy FusionCharting. :")

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