Y-Axis goes below 0 even when MinValue is set to 0

2 posts, 0 answers
  1. Jeroen
    Jeroen avatar
    50 posts
    Member since:
    Feb 2012

    Posted 07 Jun 2012 Link to this post


    I've explicitly set MinValue to 0, but sometimes (when all Y-values on the chart are 0), the Y-Axis starts from -1, in stead of 0.
    I've tried setting MinValue both in XAML, in code-behind, and even both at the same time.
    The MaxValue is determined according to the maximum Y-value in the collection, but is always at least 1.
    AutoRange is set to False.

    <charting:AxisY Title="" AutoRange="False" Step="5" MinValue="0"  MaxValue="{Binding MaxLen}"
        StripLinesVisibility="Visible" MajorGridLinesVisibility="Visible">

    ChartJam.DefaultView.ChartArea.AxisY.MinValue = 0;

    Why is the Y-Axis doing this?

    Kind regards,
  2. Rosko
    Rosko avatar
    137 posts

    Posted 12 Jun 2012 Link to this post

    Hello Jeroen,

    Using the code that you provided, I was unable to reproduce this behavior. I have attached the project where I tried to reproduce this scenario. I would advice you to start a support request, explaining the issue, sharing the version of the dlls you are using and if possible providing a runnable project where you are experiencing this behavior.

    All the best,
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top