Set minimum of X-axis

5 posts, 0 answers
  1. Tobias
    Tobias avatar
    7 posts
    Member since:
    Jul 2013

    Posted 21 Nov 2013 Link to this post

    Hi everyone,

    I tried to set the minimum of the X-axis and Y-axis to 100. For Y it's working fine but for X still 0 is used. I don't know why. I attached a screenshot of it.

    Thank you for your help!

    My code:
    myRadChart.DefaultView.ChartArea.AxisX.AutoRange = false;
    myRadChart.DefaultView.ChartArea.AxisX.MinValue = 100;
    myRadChart.DefaultView.ChartArea.AxisX.MaxValue = 500;
    myRadChart.DefaultView.ChartArea.AxisX.Step = 50;
    myRadChart.DefaultView.ChartArea.AxisY.AutoRange = false;
    myRadChart.DefaultView.ChartArea.AxisY.MinValue = 100;
    myRadChart.DefaultView.ChartArea.AxisY.MaxValue = 500;
    myRadChart.DefaultView.ChartArea.AxisY.Step = 50;
  2. Peshito
    Admin
    Peshito avatar
    496 posts

    Posted 26 Nov 2013 Link to this post

    Hi Tobias,

    I wasn't able to reproduce the same issue you are currently facing. Please provide us with a sample runnable project reproducing the issue, or simply edit the one I used for testing and have also attached to this thread.

    Please note that as this is a forum thread, you can upload the project to a third party website and share it with us, or you can open a support ticket thread ans simply attach it it there.

    Regards,
    Peshito
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft banner
  4. Tobias
    Tobias avatar
    7 posts
    Member since:
    Jul 2013

    Posted 29 Nov 2013 Link to this post

    Hey,

    I uploaded a runnable project which reproduces the issue. You can download it with the following link: http://www.file-upload.net/download-8345281/BubbleChartProblemReproduction.zip.html

    Thank you!
  5. Peshito
    Admin
    Peshito avatar
    496 posts

    Posted 02 Dec 2013 Link to this post

    Hi Tobias,

    The axis is actually showing the the proper Axis range you have specified in your code. I think that what you mean like an issue is the ticks not starting from the beginning of the axis line. If this is so, this can be solved by simply changing the axis layout mode like this:
    myRadChart.DefaultView.ChartArea.AxisX.LayoutMode = Telerik.Windows.Controls.Charting.AxisLayoutMode.Normal;

    Hope this helps.

    Regards,
    Peshito
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  6. Tobias
    Tobias avatar
    7 posts
    Member since:
    Jul 2013

    Posted 02 Dec 2013 Link to this post

    It works! Thank you!
Back to Top
DevCraft banner