gifang

Members
  • Content count

    5
  • Joined

  • Last visited

About gifang

  • Rank
    Forum Newbie
  1. chart type not support error

    JS Code: <script type="text/javascript"> FusionCharts.ready(function(){ var revenueChart = new FusionCharts({ "type": "line", "renderAt": "syd", "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": "510000" }, { "label": "2007", "value": "530000" }, { "label": "2008", "value": "550000" }, { "label": "2009", "value": "560000" }, { "label": "2010", "value": "610000" }, { "label": "2011", "value": "620000" }, { "label": "2012", "value": "610000" }, { "label": "2013", "value": "670000" }, { "label": "2014", "value": "800000" }, { "label": "2015", "value": "860000" }, ] } }); revenueChart.render(); }) </script> HTML code: <div id="syd">FusionCharts XT will load here!</div> I can not find any error in my code. Could you please check it for me? Thanks
  2. chart type not support error

    Thanks. But I have found another problems. When I try to load this diagram(exact same codes) in another website, the diagram can not be shown correctly. Do you know why it happens and how to solve it? Thanks Neal
  3. chart type not support error

    haha I fixed. I forgot to add fusioncharts.charts.js file under js folder as well.
  4. chart type not support error

    Hi, Vishalika Thanks for your reply. 1. Yes, I used MVC framework which is PHP Codeigniter Framework. I copied HTML and JSON code in view folder. I also copied fusioncharts.js and fusioncharts.theme.fint.js in assets/js folder. <script type="text/javascript" src="<?php echo asset_url(); ?>/js/fusioncharts.theme.fint.js"></script> However, it still didn't work 2. I tried google chrome and Firefox browser. none of them are working so far. Could you please help me? Thanks a lot
  5. 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