FusionChart中引入图类型和数据源方法

1、XMLUrl

<script type="text/javascript">
       var column = new FusionCharts("FusionCharts/Column3D.swf","colmnId","400","300");
       column.setXMLUrl("Data.xml");
       column.render("chart");
</script>

2、DataURL

<script type="text/javascript">
       var column = new FusionCharts("FusionCharts/Column3D.swf","colmnId","400","300");
       column.setDataURL("Data.xml");
       column.render("chart");
</script>

3、DataXML

<script type="text/javascript"> 
         var chart1 = new FusionCharts("../../FusionCharts/FCF_Column3D.swf", "chart1Id", "400", "300"); 
         chart1.setDataXML("<graph><set name='A' value='10' color='D64646' /><set name='B' value='11' color='AFD8F8' /></graph>");
         chart1.render("chart1div");
 </script> 


你可能感兴趣的:(fusionchart,数据源,引入,图类型)