How render fusionchart using my javascript function
- by AnandMeena
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.