Sign in to follow this  
Len4a Veretilo

Exportchart Is Not A Function

Recommended Posts

Hi all! I need your brilliant minds! I am very newbie in FusionCharts, so I need yopu help.

 

<html><head><title>Sfront</title><META HTTP-EQUIV="Pragma" CONTENT="no-cache"><META HTTP-EQUIV="Expires" CONTENT="-1">

<script type="text/javascript" src="../../../FusionCharts/FusionCharts.js"></script>
<table>
<tbody>

<tr>
<td><div id="chartForm:div7539" style="text-align: center; margin: 20px 40px; width: 280px; height: 380px; float: left;">
<div style="font-size:22px; height:30px; margin: 0px auto; white-space:nowrap;">
<span id="chartForm:inplaceInputId1816787239">Department:DrammenPapirEngros</span></div>		<!-- START Script Block for Chart null-->
	<div id="nullDiv" align="center">
		Chart.
	</div>
	<script type="text/javascript">
		var chartLen4a = new FusionCharts('../../../FusionCharts/AngularGauge.swf', 'myChart', '280', '320', '0', '1');


		chartLen4a.setDataURL("DepartmentDrammenPapirEngrosSpeedometerDay.xml");
		chartLen4a.setTransparent(true);
		chartLen4a.render(nullDiv);			

	</script>
	<!--END Script Block for Chart null-->
</div>
        <script type="text/javascript">
function FC_Rendered(DomID) {
var chartObject = getChartFromId(DomID);
chartObject.exportChart();
} 
</script>

  <input type="button" value="Export My Chart" onclick="FC_Rendered('myChart')" />
</td>
</tr>
</tbody>
</table>
</table></body></html>

 

when I am push the button I get the error "exportChart is not a function". What am I doing wrong?

I use last FusionCharts 3.2 version.

 

Thanks for any help!

Share this post


Link to post
Share on other sites

Hi all! I figure out that exportChart() method doesnt work when you open the page with this JS as standalone page. But if you open it as a part of web app (I am using tomcat 6.0 to do it) - I dont get this error, but it seems don't work either.

 

How can I check - if I save swf as image, where are images saved (what folder), how I can control the proccess of saving?

 

Please - help me)

 

Thanks!

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