FusionCharts Forum: Export Chart with Button - FusionCharts Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Export Chart with Button

#1 User is offline   bagus sutan 

  • Advanced Member
  • PipPipPipPip
  • Group: Members
  • Posts: 70
  • Joined: 14-June 09

Posted 08 February 2010 - 06:05 PM

Hi,

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



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
0

Other Replies To This Topic

#2 User is offline   Basundhara Ghosal 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2459
  • Joined: 15-September 09

Posted 09 February 2010 - 12:09 AM

Hi BAgus,

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

Awaiting your reply. :)

Regards,

Basundhara Ghosal

Follow us on Twitter :D
0

Other Replies To This Topic

#3 User is offline   bagus sutan 

  • Advanced Member
  • PipPipPipPip
  • Group: Members
  • Posts: 70
  • Joined: 14-June 09

Posted 09 February 2010 - 02:41 AM

Here we go..



Thanks for the reply,







Bagus Sutan
0

Other Replies To This Topic

#4 User is offline   Madhumita 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1434
  • Joined: 04-September 09

Posted 09 February 2010 - 06:59 AM

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();   }

Regards,
Madhumita Chakraborty

Follow us on Twitter :)
0

Other Replies To This Topic

#5 User is offline   bagus sutan 

  • Advanced Member
  • PipPipPipPip
  • Group: Members
  • Posts: 70
  • Joined: 14-June 09

Posted 09 February 2010 - 08:32 PM

Hi,



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





and the chart id for that div is:

This text is replaced by the Flash movie.




Awaiting your reply.



Regards,





Bagus Sutan
0

Other Replies To This Topic

#6 User is offline   Madhumita 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1434
  • Joined: 04-September 09

Posted 09 February 2010 - 11:28 PM

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.

Regards,
Madhumita Chakraborty

Follow us on Twitter :)
0

Other Replies To This Topic

#7 User is offline   bagus sutan 

  • Advanced Member
  • PipPipPipPip
  • Group: Members
  • Posts: 70
  • Joined: 14-June 09

Posted 10 February 2010 - 01:37 AM

Great. It works thanks. Sorry for being confused.









Regards,







Bagus Sutan
0

Other Replies To This Topic

#8 User is offline   Madhumita 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1434
  • Joined: 04-September 09

Posted 10 February 2010 - 04:30 AM

Hi,

You are most welcome.

I am glad that your issue has been resolved.

Happy FusionCharting. :")

Regards,
Madhumita Chakraborty

Follow us on Twitter :)
0

Other Replies To This Topic

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic