benben

Linkedchart With Multi-Series

Recommended Posts

 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
 $.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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now