Hi, all I am new to this plugin. I have got a problem about using this plugin in my website (codeigniter php framework). I used the codes from the tutorial ( http://docs.fusioncharts.com/tutorial-getting-started-your-first-charts-building-your-first-chart.html) about how to use it. However, my chart still can not be shown successfully. I inserted the below code in my website. <script type="text/javascript" src="<?php echo asset_url(); ?>/js/fusioncharts.js"></script> <script type="text/javascript" src="<?php echo asset_url(); ?>/js/fusioncharts.theme.fint.js"></script> <script type="text/javascript"> FusionCharts.ready(function(){ var revenueChart = new FusionCharts({ "type": "line", "renderAt": "chartContainer", "width": "305", "height": "240", "dataFormat": "json", "dataSource": { "chart": { "caption": "House price growth - 10 - year - period", "subCaption": " ", "xAxisName": "QUARTER ENDED JUNE", "yAxisName": "MEDIAN PRICE ($)", "theme": "fint" }, "data": [ { "label": "2006", "value": "380000" }, { "label": "2007", "value": "410000" }, { "label": "2008", "value": "430000" }, { "label": "2009", "value": "400000" }, { "label": "2010", "value": "550000" }, { "label": "2011", "value": "560000" }, { "label": "2012", "value": "510000" }, { "label": "2013", "value": "530000" }, { "label": "2014", "value": "630000" }, { "label": "2015", "value": "650000" }, ] } }); revenueChart.render(); }) </script> then I added <div id="chartContainer">FusionCharts XT will load here!</div> then I copied the fusioncharts.js and fusioncharts.theme.fint.js in \assets\js folder which is the correct direction. Everything should be fine at this stage. However, when I refresh my website. I got this error (see the attachment).
I also added debugger code in this website. It seems that there is something wrong with JavaScript code. But I can not figure out why and how to solve it.
My browser reported that Uncaught SyntaxError: Unexpected token < in fusioncharts.charts.js:2.
Can anyone helps me?
Thanks a lot
Gifang