How render fusionchart using my javascript function

Posted by AnandMeena on Stack Overflow See other posts from Stack Overflow or by AnandMeena
Published on 2013-10-22T09:50:47Z Indexed on 2013/10/22 9:53 UTC
Read the original article Hit count: 291

Filed under:
|

I want to render/call fusion chart from my javascript function.

For example:- Currently we need to do these to show chart:-

<script type="text/javascript"><!--

      var myChart = new FusionCharts( "Column3D", "myChartId", "400", "300" );
      myChart.setXMLUrl("Data.xml");
      myChart.render("chartContainer"); 
    // --> 
    </script>

But I want to write a function to render it something like below:-

<script type="text/javascript"><!--

      var column3d = new MyChart.Column.YFColumn3D("MSColumn3D", "MSColumn3DChart", "1100", "300", "0", "0");
      column3d .setXMLUrl("Data.xml");
      column3d .render("chartContainer"); 
    // --> 
    </script>

Here YFColumn3D can be a function that render actual function of fusion chart.

Thanks in advance.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about fusioncharts