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

XAxis Date mapping issue

1 Answer 72 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Neeraj
Top achievements
Rank 1
Neeraj asked on 03 Jul 2011, 08:00 PM
Hi Support,

I am attaching screen shot of the problem. I have mapped my date column to XAsix.

If date range is 3 months of above results are good. But if I change my date range to 10 days or less. I see repetitive date/days.

I would like to

#1 Fix repetitive date issue.

#2  keep my tick size always to one week. Keeping the tick size to 7 does not help in every date range scenario.
 
#3 Also if my list of objects has Date property/attribute, which I have mapped to XAxis. I would like to just display that value and not have auto range function. Setting auto range to false did not help.
#4 Not use isDate=true and change my date property to string and be able to map to xAsix. Tried it but I get format exception.

Looking forward to your reply.




1 Answer, 1 is accepted

Sort by
0
Vladimir Milev
Telerik team
answered on 07 Jul 2011, 08:46 AM
Hello Neeraj,

You are not actually getting "repetetive dates". To explain what's going on, here is how RadChart works:
When you have a period of say a couple of days and lots of ticks, the interval is less than a day. If we have an interval of say... 3 hours, you will have 24/3 = 8 ticks showing the same date, while they are actually different DateTime values. The difference between them, however, is measured in hours, minutes, seconds which you chose not to display. In order to always force a single week step for your data please choose Autorange=False and set your Step=7.

Kind regards,
Vladimir Milev
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Chart
Asked by
Neeraj
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Share this question
or