salini Report post Posted September 23, 2013 Hi, we want to use fusion chart in our application. we are using the following code to create the chart. var myChart = new FusionCharts("Column2D", "myChartId", "400", "300"); //myChart.setJSONUrl("Data.json"); var data = { "chart": { "caption": "Weekly Sales Summary", "xAxisName": "Week", "yAxisName": "Sales", "numberPrefix": "$" }, "data": [{ "label": "Week 1", "value": "10400" } , { "label": "Week 2", "value": "18600" } , { "label": "Week 4", "value": "20700" }] } //alert(data.data[0].label); myChart.setJSONData(data); myChart.render("chartContainer"); Now our requirement is to set 2d/3d based on the state of checkbox on the page. Can you please suggest a way to this? Share this post Link to post Share on other sites
Guest Rishab Report post Posted September 24, 2013 Hi,Using the FusionCharts JavaScript object, you can 'clone' an existing chart, pass it a parameter telling it to use a different chart type, and render it again.Fusioncharts 'clone( [chartParams: Object] )' function allows you to duplicate a FusionCharts JavaScript object and uses its settings to create another chart.For more information on its usage, please visit-http://www.fusioncharts.com/demos/features/#dynamic-switching-of-chart-type Share this post Link to post Share on other sites