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

YAxix2 scaling

1 Answer 42 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
robin
Top achievements
Rank 1
robin asked on 03 Sep 2008, 05:43 PM
another question to anyone that can help...

i'm using a line chart with a secondary Y-axis  - how can i force this to have a minimum value of 0 without setting autoscale to false

the chart is dynamic and driven through data entry via the front end

i.e. in my primary Y-axis the values can dip below 0, but the secondary one should not. what currently happens now i that a Y2-axis with only 0 values - the default state on page load -  (a flat line) seems to take it scaling cue from the primary Y axis so it in turn displays (unwanted) negative values

anything i can do about this - am sure a screenshot would explain better if i could find a way to attach one (?!)

cheers

1 Answer, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 04 Sep 2008, 08:33 AM
Hello robin,

Generally the AutoScale mechanism is able to correctly guess the YAxis range when you pass a series with positive values; however, when you pass a series only with zero values, it is not possible to automatically decide that only positive or only negative range should be displayed -- that is why you observe a symmetrical range around the zero start point.

You will need to set the AutoScale property to false and customize the range via the MinValue / MaxValue / Step properties of the respective axis.


Best wishes,
Manuel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Chart (Obsolete)
Asked by
robin
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Share this question
or