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

Line Chart shows negative axis labels

1 Answer 54 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Matthew Timbs
Top achievements
Rank 1
Matthew Timbs asked on 23 Nov 2009, 01:48 PM
I'm using a Line chart, and when the values I pass in are all 0's then I see both positive and negative values on the Y axis.  I'm trying to  prevent this so that all I see are positive values. 

I've tried setting IsZeroBased="true" and MinValue="0" but neither seem to take effect unless I set AutoScale="false".  I have no idea what the values might be so I really need the autoscale feature.  I do know that they'll never be negative.


here's the "Y AXIS" portion of my markup:

  <YAxis IsZeroBased="true" >
            </YAxis>

Thanks...

--Matt



1 Answer, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 24 Nov 2009, 11:18 AM
Hi Matthew,

Indeed your observations are correct -- you need to set AutoScale="false" in order to customize the axis value range in this scenario. You can disable the AutoScale in case all values are 0s, and re-enable it once you are showing "real" values).


All the best,
Manuel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Chart (Obsolete)
Asked by
Matthew Timbs
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Share this question
or