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

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

1 Answer 32 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Jeroen
Top achievements
Rank 1
Jeroen asked on 07 Jun 2012, 02:42 PM
Hi,

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,
Jeroen

1 Answer, 1 is accepted

Sort by
0
Rosko
Telerik team
answered on 12 Jun 2012, 09:05 AM
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,
Rosko
the Telerik team

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

Tags
Chart
Asked by
Jeroen
Top achievements
Rank 1
Answers by
Rosko
Telerik team
Share this question
or