Excessive gaps at each end of line chart

3 posts, 1 answers
  1. SteveL
    SteveL avatar
    68 posts
    Member since:
    Apr 2009

    Posted 04 Jul 2009 Link to this post

    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. Answer
    Ves
    Admin
    Ves avatar
    2879 posts

    Posted 08 Jul 2009 Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. SteveL
    SteveL avatar
    68 posts
    Member since:
    Apr 2009

    Posted 09 Jul 2009 Link to this post

    Thanks, that's working well.

    Steve
Back to Top