whiplash159

Members
  • Content count

    2
  • Joined

  • Last visited

About whiplash159

  • Rank
    Forum Newbie
  1. chart.hasRendered is not a function

    Yes, I have the latest Fusion Charts. It will not show an error with this but also it will not export the chart which is my main goal.
  2. chart.hasRendered is not a function

    I have exactly the same problem. I use a very simple example which is very close to the given examples in the FusionCharts website: The HTML file: <html> <head> <title>My Chart</title> <script type="text/javascript" src="JSClass/FusionCharts.js"></script> <script type="text/javascript"> function ExportMyChart() { var testObj = getChartFromId('myChartId'); if( testObj.hasRendered() ) testObj.exportChart(); } </script> </head> <body> <div id="chartContainerDiv">FusionCharts loaded here...</div> <script type="text/javascript"> var myChart = new FusionCharts('Charts/Column3D.swf', 'myChartId', '900', '300', '0', '1'); myChart.setDataURL('Data.xml'); myChart.render('chartContainerDiv'); </script> <input type="button" value="Export My Chart" onclick="ExportMyChart()" /> </body> </html> The XML file: <chart chartTopMargin='40' caption='Month report' xAxisName='Attendance / Month' formatNumberScale='0' thousandSeparator=' ' chartLeftMargin='15' chartRightMargin='15' chartTopMargin='15' chartBottomMargin='15' rotateYAxisName='0' exportEnabled='1' exportHandler='ExportHandlers/PHP/FCExporter.php' exportAtClient='0' exportAction='download' > > <set label='12.2009' value='10000' /> <set label='01.2010' value='15000' /> <set label='02.2010' value='17500' /> <set label='03.2010' value='15000' /> <set label='04.2010' value='4000' /> </chart> All files are loaded successfully. I see the chart, but when I click on the button I get js error that hasRendered is not a function. I'm using the package available in the download section of the FusionCharts web site and I tested on Mozilla Firefox 3.6.3.