Line Chart:how can I have X axis with 30 dates

Thread is closed for posting
3 posts, 0 answers
  1. Flavio Balbo
    Flavio Balbo avatar
    4 posts
    Member since:
    Aug 2006

    Posted 18 Feb 2010 Link to this post

    Hi, I am new in RadChart.
    I have a dataset with some value in this format:
    Date,Value.
    (1 value every minute)
    I must show in a radchart (line) Y axis the values and in the x-axis the day (date dd/mm/yy).
    I have to show 30 day (fixed 30). Only one label for day.
    After MANY times I can show line but in x-axis I see label 1,2,3,4,etc.
    How can I show only 30 step with a date in every step?
    Hope my english is well (i am italian).
    I think documentation or example are not very good. I haven't see something about use of dates.
    And in the real life, dates and hours are a really important.
    Thanks.
    Flavio Balbo
  2. Schlurk
    Schlurk avatar
    812 posts
    Member since:
    May 2009

    Posted 18 Feb 2010 Link to this post

    I think the best place to look when it comes to databinding to dates would be the Numerical Axis demo. Basically the RadChart needs to have some sort of number (int, double, float even) in order to bind the data to the Chart. So what you need to do with dates is convert this to a representation that the Chart can handle. The demo shows you how you can use DateTime objects and eventually have them bound to the Chart :)
  3. Flavio Balbo
    Flavio Balbo avatar
    4 posts
    Member since:
    Aug 2006

    Posted 18 Feb 2010 Link to this post

    I try with this example and then I'll write you. Thanks a lot.
    I'll study better the examples. Hope will be the right answer.
    Thanks again
    Flavio
Back to Top