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

Problem Arranging a DateTime X-Axis

3 Answers 84 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Erwin
Top achievements
Rank 2
Erwin asked on 29 Jun 2011, 04:10 PM
I'm trying to make a scatterchart with values on the y-axis, and dates on the x-axis. De date range can be a few days, but also a few hundred.

Using autoArrange=true, the pointmarks are plotted, but the x-axis is a mess (especially with a big date range). (x-axis.isDate="True")

Using autoArrange=false and setting other x-axis as follows:
this.RadScatterChart1.DefaultView.ChartArea.AxisX.MinValue = startDate.ToOADate();
this.RadScatterChart1.DefaultView.ChartArea.AxisX.MaxValue = endDate.ToOADate();
this.RadScatterChart1.DefaultView.ChartArea.AxisX.Step = ((endDate.ToOADate() - startDate.ToOADate())/20);
this.RadScatterChart1.DefaultView.ChartArea.AxisX.LabelStep = 5;
this.RadScatterChart1.DefaultView.ChartArea.AxisX.LabelStep = Convert.ToInt32(Math.Round((this.RadScatterChart1.DefaultView.ChartArea.AxisX.Step * 2), 0)); 
this.RadScatterChart1.DefaultView.ChartArea.AxisX.StepLabelLevelCount = 2;
I've tried loads of variations of above, with no effect

Now the x-axis is ok, but no pointmarks are plotted at all....

Help needed, too much time wasted already.

Erwin

3 Answers, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 01 Jul 2011, 09:58 AM
Hi Erwin,

Could you elaborate a bit more on the specific issue? What do you mean by "but the x-axis is a mess" when you are using the XAxis.AutoRange = true? It will be best if you can send us a stripped down runnable version of this project where this issue reproduces.

All the best,
Evgenia
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
Erwin
Top achievements
Rank 2
answered on 01 Jul 2011, 10:31 AM
Thanks for the response.

What I ment with a mess on the x-axis is that the dates noy always are shown sequentially. For instance: jun 1, jun 5, jun 2, jun 3 ,jun 4.

I have added a scrollbar in the mean time, that works reasonably. Now the axis scaling is ok with zooming. and date range changes.

This post can be closed. 

We have a lot of poblems with radcontrols, especially with the RadChart. After intenal evaluation we will decide what to do with it.
0
Evgenia
Telerik team
answered on 06 Jul 2011, 10:16 AM
Hi Erwin,

We are sorry to hear that you have problems with our RadControls. However we will be glad to assist you in resolving them if you provide us more information on the specific issues.

Let us know if you need further assistance.

Regards,
Evgenia
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
Erwin
Top achievements
Rank 2
Answers by
Evgenia
Telerik team
Erwin
Top achievements
Rank 2
Share this question
or