Export Chart with Button
#1
Posted 08 February 2010 - 06:05 PM
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
Other Replies To This Topic
#2
Posted 09 February 2010 - 12:09 AM
Could you please send us the sample code that you are using?
Awaiting your reply.
Other Replies To This Topic
#3
Posted 09 February 2010 - 02:41 AM
Thanks for the reply,
Bagus Sutan
Other Replies To This Topic
#4
Posted 09 February 2010 - 06:59 AM
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(); }
Other Replies To This Topic
#5
Posted 09 February 2010 - 08:32 PM
as you can check my file, i think i've supplied the id as:
and the chart id for that div is:
Awaiting your reply.
Regards,
Bagus Sutan
Other Replies To This Topic
#6
Posted 09 February 2010 - 11:28 PM
In the sample file you attached the id of the chart provided by you is ChID. and the chart object is named as chartStag.
Other Replies To This Topic
#7
Posted 10 February 2010 - 01:37 AM
Regards,
Bagus Sutan
Other Replies To This Topic
#8
Posted 10 February 2010 - 04:30 AM
You are most welcome.
I am glad that your issue has been resolved.
Happy FusionCharting. :")


Back to top
MultiQuote