Sign in to follow this  
k1rby

chartObject.exportChart is not a function

Recommended Posts

Hi,

 

 

 

 

 

I'm trying to make my charts export server-side automaticaly on page load. So I added this JS function in my page:

 

 

 

function FC_Rendered(DomID) {

 

var chartObject = getChartFromId(DomID);

 

chartObject.exportChart();

 

}

 

 

 

The problem is I'm getting this error message : "chartObject.exportChart is not a function"

 

 

 

Any idea ?

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Welcome to FusionCharts forum. :(

Could you please re-check whether you have enabled the 'RegisterWithJS' attribute or not?

Ref.- <script language="JavaScript"> 

 var chart1 = new FusionCharts("../../FusionCharts/Column3D.swf", "chart1Id", "400", "300", "0", "1");

chart1.setDataXML("<chart><set label='A' value='10' /><set label='B' value='11' /></chart>");

chart1.render("chart1div");

 </script>

In case it still does not solve your issue please try updating your chart from the link mentioned below :-

Re.- http://www.fusioncharts.com/puc/

Hope this helps. :)

Share this post


Link to post
Share on other sites

Hi I am receiving the same error. I don't see hasRendered being defined in any of my files. exportChart is in the source but it still says that its not a function. I tried doing a console.log on the chart object and I definitely have the chart. Why would this not work? Also I have all the latest files.

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Could you please send us the code that you are using, as an attachment?

Awaiting your reply.

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