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

Uniform dates on X-axis

5 Answers 97 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Kiran Ghanwat
Top achievements
Rank 1
Kiran Ghanwat asked on 14 Apr 2010, 06:56 AM

I am displaying Dates in the MMM-yy on X-Axis.

But, I want those to be displayed in uniform manner like ...Mar 05,Mar 06, Mar 07....
Instead of current display like .... ,Mar 06, Apr 07,Jun 08.....

Please Find Code and Attachment.

Please help me.

    ValChart.DefaultView.ChartArea.AxisX.DefaultLabelFormat = "MMM yy";  
    ValChart.DefaultView.ChartArea.AxisX.IsDateTime = true;  
    ValChart.DefaultView.ChartArea.AxisX.LabelStep = 2;  
    ValChart.DefaultView.ChartArea.AxisX.Step = 5; 

5 Answers, 1 is accepted

Sort by
0
Vladimir Milev
Telerik team
answered on 16 Apr 2010, 12:58 PM
Hello Kiran Ghanwat,

The problem stems from the fact that RadChart uses a constant step, that is always the same when graphing the datetime data while months by definition are not uniform at all. Some months are 31 days, others 30, February is 28. When using a uniform step with non-uniform periods you are bound to see some side effects like the one described in your ticket.

With that said, we realize months are an important time period and are currently looking for ways to better implement support for them. We might have a treat for you in the Q2 release :) Stay tuned!

All the best,
Vladimir Milev
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.
0
Lian
Top achievements
Rank 1
answered on 30 Jun 2010, 01:40 PM
Has proper handling of monthly dates been included in the new Q2 release?
0
Vladimir Milev
Telerik team
answered on 06 Jul 2010, 09:02 AM
Hi Lian,

Yes, the feature will be included with Q2 release, due later this month.

Best wishes,
Vladimir Milev
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
0
Alex
Top achievements
Rank 1
answered on 29 Sep 2010, 11:07 PM
Hello,

I am working with the demo silverlight tools, and this AxisX date range issue is something that I have been battling with.  I saw this note that there will be something in the Q2 release...  I hastily checked my version Q2 2010 SP1...but can not find anything in the documentation or samples that would indicate that there is anything.

Is there something that I'm not seeing?  How is this feature utilized?  I would appreciate any pointers to samples or docs.

Thanks so much.
Alex.
0
Vladimir Milev
Telerik team
answered on 05 Oct 2010, 08:02 AM
Hi Alex Durrant,

Please check this demo and the documentation for more information about the feature. Let us know if you have any problems!

Best wishes,
Vladimir Milev
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
Tags
Chart
Asked by
Kiran Ghanwat
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Lian
Top achievements
Rank 1
Alex
Top achievements
Rank 1
Share this question
or