This is a migrated thread and some comments may be shown as answers.

Excessive gaps at each end of line chart

2 Answers 69 Views
Chart
This is a migrated thread and some comments may be shown as answers.
SteveL
Top achievements
Rank 2
SteveL asked on 04 Jul 2009, 09:05 PM
Using the new facilities in the Q2 charts, e.g. strict mode, and the automatic label stepping - many thanks for doing these - I am now much happier with the radchart for the purpose I want to put it to - real time plotting of weather data. I've bound a line chart to a collection containing a DateTime and a temperature, and the resulting chart is working well, apart from the fact that it doesn't fill the whole X axis. Sometimes the gap at each end is quite large relative to the size of the plot, e.g:

http://nybbles.co.uk/images/chart1.jpg

The first point was actually plotted at about 21:20:30.

Is it possible to make the line fill the chart?

Steve



2 Answers, 1 is accepted

Sort by
0
Accepted
Ves
Telerik team
answered on 08 Jul 2009, 06:18 AM
Hi Steve,

A possible fix here is to set the AutoRange property to false and provide your own values for MinValue, MaxValue and Step properties. The reason for this behavior is in the way RadChart calculates the X axis range in DateTime-related scenarios. We have already improved it, so with the next release (service pack expected later this month) RadChart will yield better results.

Greetings,
Ves
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
SteveL
Top achievements
Rank 2
answered on 09 Jul 2009, 09:22 AM
Thanks, that's working well.

Steve
Tags
Chart
Asked by
SteveL
Top achievements
Rank 2
Answers by
Ves
Telerik team
SteveL
Top achievements
Rank 2
Share this question
or