benben Report post Posted June 20, 2013 I can't get this to render,Here is some sample XML... <chart caption='发电量(1号机组)' xAxisName='时间单位:月' yAxisName='指标值(单位:MWh)' showBorder='1'> <categories> <category label='1月份'/> <category label='2月份'/> <category label='3月份'/> </categories> <dataset seriesName='Product A' > <set value='13400' link='newchart-xml-1month' /> <set value='19600' /> <set value='24000' /> <set value='15700' /> <linkeddata id='1month'> <chart caption='test1' xAxisName='test'yAxisName='test' showBorder='1'> <categories> <category label='1月份'/> </categories> <dataset seriesName='A' > <set value='19600' /> </dataset> </chart> </linkeddata> </dataset> <dataset seriesName='Product B' > <set value='14400'/> <set value='19600' /> <set value='24000' /> <set value='15700' /> </dataset> </chart> Share this post Link to post Share on other sites
benben Report post Posted June 20, 2013 $.get ( "JY.ashx?fashion=column1", function (data, textStatus) { var myChart1 = new FusionCharts("FusionCharts/MSColumn3D.swf", "myChartId1", "500", "200", "1", "1"); myChart1.setDataXML(data); myChart1.render("div1"); } ); add js code; Share this post Link to post Share on other sites
Swarnam Report post Posted June 21, 2013 Hi Benben, Please try using the below code: <chart caption='发电量(1号机组)' xAxisName='时间单位:月' yAxisName='指标值(单位:MWh)' showBorder='1'> <categories> <category label='1月份'/> <category label='2月份'/> <category label='3月份'/> </categories> <dataset seriesName='Product A' > <set value='13400' link='newchart-xml-1month' /> <set value='19600' /> <set value='24000' /> <set value='15700' /> </dataset> <linkeddata id='1month'> <chart caption='test1' xAxisName='test' yAxisName='test' showBorder='1'> <categories> <category label='1月份'/> </categories> <dataset seriesName='A' > <set value='19600' /> </dataset> </chart> </linkeddata> <dataset seriesName='Product B' > <set value='14400'/> <set value='19600' /> <set value='24000' /> <set value='15700' /> </dataset> </chart> Share this post Link to post Share on other sites