DateTime X-Axis and autoscale

Thread is closed for posting
2 posts, 0 answers
  1. Ulrich
    Ulrich avatar
    23 posts
    Member since:
    Dec 2008

    Posted 01 Oct 2010 Link to this post

    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

  2. Yavor
    Yavor avatar
    11 posts

    Posted 06 Oct 2010 Link to this post

    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.

    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
Back to Top