Sign in to follow this  

Chart not supported error

Recommended Posts



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)
           //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.render("chartdiv-<?php echo $canvasItem->id ?>");


Edited by mangeshlad86

Share this post

Link to post
Share on other sites
Guest Sashibhusan



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:


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

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