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

DateTime X-Axis and autoscale

1 Answer 109 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Ulrich
Top achievements
Rank 1
Ulrich asked on 01 Oct 2010, 08:02 AM
Hello Telerik-Team,

I have a problem with RadChart which I am unable to find a solution for by myself.

I am populating a RadChart with items which use the "ToOADate()"-Function from a DateTime-Value as the X-Value. I also set the ValueFormat of the X-Axis to ShortDate.

Depending on filters entered by the user, the timespan of items inside the chart can vary from a couple of hours to months.

I haven't been able to find a way to display small timespans. I tried both AutoScale=true and AutoScale=false, in the later case setting the Range of the X-Axis with the smallest and largest DateTime from the data I populate the chart with.

Regardless of what I do, there is always a big gap added to the right and the left part of the Grid, making it impossible to read the chart.
Attached is an example (the min/max DateTime-Values in this case all are from 30.09.2010, starting at 12:18 up to 15:55).

What can I do to use the width of the chart more effectively?

best regards and thanks in advance

Ulrik

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 06 Oct 2010, 08:32 AM
Hello Ulrich,

In order to make sure that the line properly spanls on the available width, you need to introduce more XAxis values. In this manner, the values will fall into, say 10 categories, instead of only two, and will be more evenly distributed. Other than this, the control strictly adheres to the correspondence between the data and the categories.
I hope this information helps.

Greetings,
Yavor
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Chart (Obsolete)
Asked by
Ulrich
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or