Sagar Kamate Report post Posted April 9, 2012 Hello, I have four different charts on a single page. When i select the criteria it rebinds and shows the chart. But at the same time it throws the error in Java Script as 'Fusion chart object with the specified id 'ChartId' already exist'. Share this post Link to post Share on other sites
Guest Sumedh Report post Posted April 9, 2012 Hi, This might happen, when you have a JavaScript variable in the global window scope with the same name as that of the chart's Id. the javascript variable name and the chart id shouldn't be same. Ref. Code: var myChart=new ( "FusionCharts/Column3D.swf","myChart", "300", "300", "0", "1" ); In above code, myChart is replicated as a variable name as well as a chart ID. It should be like: var myChart=new ( "FusionCharts/Column3D.swf","myChartID", "300", "300", "0", "1" ); Hope this helps. Share this post Link to post Share on other sites
JasonBlueSky Report post Posted April 20, 2012 Hi, This might happen, when you have a JavaScript variable in the global window scope with the same name as that of the chart's Id. the javascript variable name and the chart id shouldn't be same. Ref. Code: var myChart=new ( "FusionCharts/Column3D.swf","myChart", "300", "300", "0", "1" ); In above code, myChart is replicated as a variable name as well as a chart ID. It should be like: var myChart=new ( "FusionCharts/Column3D.swf","myChartID", "300", "300", "0", "1" ); Hope this helps. I also found that in JavaScript mode you have to delete the chart first before you add it again: if ( FusionCharts( chartId ) ) FusionCharts( chartId ).dispose(); Share this post Link to post Share on other sites
Guest Bindhu Report post Posted April 21, 2012 Hi, Thank you You are absolutely right Share this post Link to post Share on other sites
luopeng Report post Posted September 20, 2012 I also found that in JavaScript mode you have to delete the chart first before you add it again: if ( FusionCharts( chartId ) ) FusionCharts( chartId ).dispose(); Thank You! Share this post Link to post Share on other sites
santoshy Report post Posted January 4, 2014 Thanks for this help! Share this post Link to post Share on other sites