mangeshlad86 Report post Posted April 2, 2014 (edited) Hi, I am using fusion charts XT javascript charts. Consider the following situation - I have created Pie Chart and I have facility to edit that chart and select different chart types. While I switch between different chart types, It works perfectly as I want, but while ajax call is fetching the data, it shows the error "Chart type not supported with fusion charts logo below it". Following is the code I user to switch between the charts - var chartObject1 = FusionCharts("fu-chart-<?php echo $model->id ?>"); //if chart is already created, then dispose it if(chartObject1 != null) chartObject1.dispose(); //create the chart dynamically with chart type chartType var myChart = new FusionCharts( chartType, "fu-chart-<?php echo $model->id ?>", "100%", "100%"); var chartDataUrl = "path/to/url"; myChart.setXMLUrl(chartDataUrl); myChart.render("chartdiv-<?php echo $canvasItem->id ?>"); Edited April 2, 2014 by mangeshlad86 Share this post Link to post Share on other sites
Guest Sashibhusan Report post Posted April 3, 2014 Hi, Could you please alert the value of "chartType" before passing to FusionCharts() constructor and see whether you are getting the chat type with correct JavaScript chart alias name as provided in link: http://docs.fusioncharts.com/charts/contents/Introduction/ChartList.html If not, please modify your code accordingly, so that "chartType" will hold the correct chart type. Hope this helps! Share this post Link to post Share on other sites