Sign in to follow this  
learning FC

Chart Rendering Error.

Recommended Posts

Hi,

i am try to render chart with same id and div but with diiferent data on click, like this

 

var myChart = new FusionCharts("Column2D","myChart1", "85%", "80%", "0" );

myChart.setJSONData(t);

myChart.render("chartContainer");

 

but the error is thrown:

ParameterException: #06091847 chartobject-1 Warning >> A FusionChart oject with the specified id "myChart1" already exists. Renaming it to chartobject-1How do i solve this? is this possible bcoz m using a div with a few links and depending upon the link the data is to be displayed in the same chart removing the existing chart.

Please help...

Share this post


Link to post
Share on other sites

I found the way to implement this:

 

var chartReference = FusionCharts( "myChartId" );

chartReference.setXMLUrl( "newData.xml" );

 

Hi,

i am try to render chart with same id and div but with diiferent data on click, like this

 

var myChart = new FusionCharts("Column2D","myChart1", "85%", "80%", "0" );

myChart.setJSONData(t);

myChart.render("chartContainer");

 

but the error is thrown:

ParameterException: #06091847 chartobject-1 Warning >> A FusionChart oject with the specified id "myChart1" already exists. Renaming it to chartobject-1How do i solve this? is this possible bcoz m using a div with a few links and depending upon the link the data is to be displayed in the same chart removing the existing chart.

Please help...

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