Am new to fusion charts, I was using both chart and widget in same page. And am using Javascript charts not swf files. Since they both got same function name to generate chart but having different code in it, I was able to get any one of it regarding the selection of js file which i use.
Code:
var myChart1 = new FusionCharts( "Thermometer", "ChId2", "130", "280", "0", "1" );
myChart1.setDataURL("xml/thermo.xml");
myChart1.render("thermo");
var chart = new FusionCharts("Line", "ChartId", "300", "300", "0", "1");
chart.setDataURL("xml/line.xml");
chart.render("chartdiv");
How can i use both in same page??
Please make sure you have kept “FusionCharts.HC.js”, “jquery.min.js”, “FusionCharts.HC.Charts.js” and “FusionCharts.HC.Widgets.js” in the same folder as “FusionCharts.js” while rendering the JavaScript version of Charts and Widgets in the same page.
You can use the common 3 files, “FusionCharts.js”, “FusionCharts.HC.js” and “jquery.min.js” from the latest FusionCharts XT Service Release 4 pack.