Christian Schubert

Funnel charts not working with version 3.13.3

Recommended Posts

Hi,

I just upgraded to version 3.13.3.

Funnel charts don't seem to be working anymore. I created an example based on your "Simple Funnel" demo but it still gives me a "chart type not supported" error:

<HTML>
<HEAD>
<script type="text/javascript" src="file://<local path>/fusioncharts.js"></script>
</HEAD>
<BODY style="height:100%;margin: 0; overflow-y:hidden; padding:0;" border="0">
<div id="chart-container" align="center" style="overflow: auto;height:100%;">
</div>
<script language="JavaScript">
const dataSource = {
"chart": {
"caption": "Website visits",
"subcaption": "Purchase - Conversion analysis for last year",
"decimals": "1",
"showvalues": "1",
"plottooltext": "$label: <b>$dataValue</b>",
"plotfillalpha": "70",
"streamlineddata": "0"
},
"data": [
{
"label": "Website Visits",
"value": "17362"
},
{
"label": "Downloads",
"value": "8039"
},
{
"label": "Checked Pricing",
"value": "5509"
},
{
"label": "Asked for Quotation",
"value": "3962"
},
{
"label": "Purchased",
"value": "2397"
}
]
};

FusionCharts.ready(function() {
var myChart = new FusionCharts({
type: "funnel",
renderAt: "chart-container",
width: "100%",
height: "100%",
dataFormat: "json",
dataSource
}).render();
});
</script>
</BODY>
</HTML>

Any clues?

 

Best Regards,

Christian Schubert

   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   

Share this post


Link to post
Share on other sites

Hi,

 

You need to include fusioncharts.js and fusioncharts.widgets.js to render any chart or widget that comes under the FusionWidgets. Please check the below sample for reference using your dataSource :

http://jsfiddle.net/y3qbzet8/

Please note : Funnel chart is categorized under FusionWidgets package.

 

Thanks,

Akash.

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