Sign in to follow this  
Guest Basundhara Ghosal

The Chart is being stretched for no possible reason ....

Recommended Posts

Hi

 

 

 

I am using Data streaming charts to show dynamic update from a database .... when the data is not being pulled in real time the chart displayed is perfect ....

 

 

 

But when the data is being pulled in real time .... the chart looks over stretched ..

 

 

 

All the attributes are similar except those which are necessary for real time update ....

 

 

 

Chart Attributes for Normal Chart :::

 

 

 




 

 

 

Chart Attributes for Real Time Data Chart :::

 

 

 




 

 

 

Attached are the Real time chart and Normal Chart for Comparison ....

 

Also following code renders the chart for both the types .... i.e normal and Real Time

 

 

 




 

 

 

What Am i missing or doing wrong ?

 

 

 

Thanks a million in advance ....

 

 

 

Chinmay

 

 

 

I've put my code in

 and 

code tags still they are not showing up .... Please bear with me ...

post-5597-128441575546_thumb.jpg

post-5597-128441575559_thumb.jpg

Edited by Guest

Share this post


Link to post
Share on other sites
Guest Rajroop

Hi Chinmayu,

 

 

 

I'm afraid the only difference between the Line Chart and the Real-time Line chart is that of the flow in data, in case of the Real-time Line Chart. The display of the Real-time Line Chart would solely depend on the data that is passed to the chart and plotted.

 

 

 

In case, you would want to change the way the Real-time Line is plotting on the canvas, there are a few ways to 'tweak' this. :D

 

 

 

1. You could try and set a higher upper limit of the Y-Axis so as to make the Line appear centric in its display on the chart.

 

 

 

2. You could also use numDisplaySets attribute to set a lower number of data items that you want as history on the chart. This will help in a less 'stretched' display of the line.

 

 

 

I hope this helps. :D

Share this post


Link to post
Share on other sites

Thanks for your response ...

 

 

 

But i was more kinda concerned about the outlines .... and the horizontal colored sections .... they are stretching outside the designated area ....

 

 

 

Why the real line graph is skewed ...

 

 

 

Its like the chart is going outside the chart container ......

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

 

 

 

Could you please send us the XML code for the real time graph?

 

 

 

Awaiting for your reply.:D

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