Sign in to follow this  
itchap

Editing the strXML variable in JSP for Multi-series Charts

Recommended Posts

Hi,

 

 

 

Im very new to FusionCharts. But i think it's the bomb!

 

 

 

Can you help me? I need to display data from my MySQL DB in a Multi-series Chart. I have 3 Fields - Date, Users, Uploads. So far i can only display the Date and Users data in a Single-series chart. I need to know how to edit the strXML string in my JSP file to display the three compents in a Multi-series Chart. I.e. Date (x-axis), Users and Uploads (y-axis).

 

 

 

Cheers!

 

 

 

Peter

Share this post


Link to post
Share on other sites

hi,

Please go through the Documentation and XML structure of an Multiseries chart like MSColumn3D from our Documentation : http://www.fusioncharts.com/

In the same Documentation you can have a look at the 'Using With JSP' Section, in 'Guide For Web Developers.' You can have an uinsight in to how XML is created with JSP. You write it any way you wish, provided that the resultant XML conforms to the norms of a multoseries chart.

A general XML structure for a multiseries chart :

<chart>

  <categories>

 <category label='YourDate'/>

  ...

</categories>

  <dataset seriesName='Users'>

  <set value='..'/>

  ...

  </dataset>

<dataset seriesName='Uploads'>

  <set value=''/>

  ...

  </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
Sign in to follow this