c# - How to draw multi-series column chart in FusionCharts -
i developing web application using asp.net c# , drawing graphs using fusioncharts. need draw multi-series column chart tries following code, in vain
<div id="chartcontainer"></div> <script type="text/javascript"> var mychart = new fusioncharts("column3d", "mychartid", "400", "300"); mychart.setxmlurl("data8.xml"); mychart.render("chartcontainer"); </script> data8.xml ---------- <chart caption='sales product' numberprefix='$' formatnumberscale='1' rotatevalues='1' placevaluesinside='1' decimals='0' ><categories> <category label='product a' /> <category label='product b' /> <category label='product c' /> <category label='product d' /> <category label='product e' /> <category label='product f' /> </categories><dataset seriesname='current year'> <set value='567500' /> <set value='815300' /> <set value='556800' /> <set value='734500' /> <set value='676800' /> <set value='648500' /> </dataset><dataset seriesname='previous year'> <set value='547300' /> <set value='584500' /> <set value='754000' /> <set value='456300' /> <set value='754500' /> <set value='437600' /> </dataset></chart>
please me this...
try modify:
var mychart = new fusioncharts("column3d", "mychartid", "400", "300");
with:
var mychart = new fusioncharts("mscolumn3d", "mychartid", "400", "300");
column3d
single serie, , mscolumn3d
multi-series.
Comments
Post a Comment