Sign in to follow this  
gtoogood

Problem With Line Chats Rendering In Js

Recommended Posts

Hey guys,

 

Having a problem rendering a line chart using Javascript. When rendering as flash the chart works great however when forcing it to render as javascript with "FusionCharts.setCurrentRenderer('javascript');" it fails on one of our line charts. It goes into an endless loop which in firebug prints out as ""p is undefined"...

 

I have attached a snapshot of the graph rendered in flash and one rendered in javascript and perhaps you might know what I could be doing wrong..

 

This is wrapped in a jquery "tabs" div but I don't thing that is causing the issue.. well I don't actually know :P

 

Currently using the following version of FusionCharts.HC.js

 

/*

FusionCharts JavaScript Library

Copyright FusionCharts Technologies LLP

License Information at <http://www.fusioncharts.com/license>

 

@author FusionCharts Technologies LLP

@version fusioncharts/3.2.3-release.4749

*/

post-28434-0-13849700-1341556969_thumb.png

post-28434-0-27267800-1341556983_thumb.png

Share this post


Link to post
Share on other sites
Guest Sumedh

Hey guys,

 

Having a problem rendering a line chart using Javascript. When rendering as flash the chart works great however when forcing it to render as javascript with "FusionCharts.setCurrentRenderer('javascript');" it fails on one of our line charts. It goes into an endless loop which in firebug prints out as ""p is undefined"...

 

I have attached a snapshot of the graph rendered in flash and one rendered in javascript and perhaps you might know what I could be doing wrong..

 

This is wrapped in a jquery "tabs" div but I don't thing that is causing the issue.. well I don't actually know :P

 

Currently using the following version of FusionCharts.HC.js

 

/*

FusionCharts JavaScript Library

Copyright FusionCharts Technologies LLP

License Information at <http://www.fusioncharts.com/license>

 

@author FusionCharts Technologies LLP

@version fusioncharts/3.2.3-release.4749

*/

 

Hi,

 

Can you paste your sample code here?

 

Also send us the XML code.

Share this post


Link to post
Share on other sites

Hi,

 

Can you paste your sample code here?

 

Also send us the XML code.

 

Yeah all good now.

 

I wasn't disposing of the chart before I hid the surrounding div ..

 

if ( FusionCharts( "SomeChartID" ) ) FusionCharts( "SomeChartID" ).dispose();

 

Works awesome now :D

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