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

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

2 Answers 90 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Flavio Balbo
Top achievements
Rank 2
Flavio Balbo asked on 18 Feb 2010, 10:02 AM
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 Answers, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 18 Feb 2010, 05:50 PM
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 :)
0
Flavio Balbo
Top achievements
Rank 2
answered on 18 Feb 2010, 06:25 PM
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
Tags
Chart (Obsolete)
Asked by
Flavio Balbo
Top achievements
Rank 2
Answers by
Schlurk
Top achievements
Rank 2
Flavio Balbo
Top achievements
Rank 2
Share this question
or