Problem Arranging a DateTime X-Axis

4 posts, 0 answers
  1. Erwin
    Erwin avatar
    8 posts
    Member since:
    Jun 2011

    Posted 29 Jun 2011 Link to this post

    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
  2. Evgenia
    Admin
    Evgenia avatar
    1437 posts

    Posted 01 Jul 2011 Link to this post

    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
  3. Erwin
    Erwin avatar
    8 posts
    Member since:
    Jun 2011

    Posted 01 Jul 2011 Link to this post

    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.
  4. Evgenia
    Admin
    Evgenia avatar
    1437 posts

    Posted 06 Jul 2011 Link to this post

    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!

Back to Top