Sign in to follow this  
durga1973

Which Charts to Use

Recommended Posts

Hi,

 

We are planning to creat charts using some dynamic data, The data pattern is as follwos

 

We have a data for one hour, so planning to show on X-axis with lables 0 min, 5 mins ... 55 mins

 

On Y-axis we want to show the amounr of consumttion like 100, 200 .... 500

 

 

The issues we don't have a data exactly at 5 min or 10 mins the data entry can be between 5 to 10 mins

 

 

<consumption>

      <person time="10:05" amount="150" />

      <person time="10:08" amount="150" />

      <person time="10:13" amount="150" />

      <person time="10:25" amount="150" />

.....

</consumtion>

 

We want the chart to show the value at 8 mins from the above example.

We want to use Multi Series Line charts. Please help me out which charts can be used and how to plot it

 

Thanks,

Durga

 

Share this post


Link to post
Share on other sites

Hi Durga,

 

If you want to represent only one series, you may use Line2D chart and if you want to represent more than one series, then use MultiSeries Line 2D chart.

 

You have to provide data in either XML or JSON data format.

 

The x-axis takes in only string values and y-axis takes in numerical data.

 

For the given data, the chart XML data would be like,

<chart xAxisname='Time' yAxisName='Amount'>

<set value='150' label='10:05'/>

<set value='150' label='10:08'/>

<set value='150' label='10:13'/>

<set value='150' label='10:25'/>

</chart>

Please find attached screen shot of the chart rendered.

 

Hope this helps!

post-62559-0-19908400-1397451827_thumb.png

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