Friday, 15 August 2014

javascript - Fusion Charts Issues -



javascript - Fusion Charts Issues -

hi using bullet charts in fusion charts.i using same sample code given bullet graphs , instaed of taking info values file in info folder trying set info on html page itself.

<div align="center"> <script type="text/javascript"> var mychart = new fusioncharts ("charts/vbullet.swf", "mychart4", "80", "270", "0", "0"); mychart.setdataurl("data/wageincrease.xml"); mychart.render("chartdiv4"); </script> </div>

replaced

</div><div align="center"> <script type="javascript"> var mychart = new fusioncharts ("charts/vbullet.swf", "mychart4", "80", "270", "0", "0"); mychart.setdataxml("<chart> <value>13</value> <target>74</target> </chart>"); mychart.render("chartdiv4"); </script>

but not working doing wrong????

please seek removing new line characters , provide without space in between tags, when providing xml in info string method.

</div><div align="center"> <script type="javascript"> var mychart = new fusioncharts ("charts/vbullet.swf", "mychart4", "80", "270", "0", "0"); mychart.setdataxml("<chart><value>13</value><target>74</target></chart>"); mychart.render("chartdiv4"); </script>

javascript html fusioncharts

No comments:

Post a Comment