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

What is the range (percentage) for value axis Autoscaling min value and can I control that?

1 Answer 149 Views
Charts
This is a migrated thread and some comments may be shown as answers.
JamesD
Top achievements
Rank 1
JamesD asked on 11 Apr 2014, 09:02 AM
Good morning

http://jsbin.com/kiquvano/2/
As soon as you add 0.1 to the item marked "smallest" (in source comments) the scaling works fine again. The largest value is less than 30% larger.
If it is not possible to control the percentage (largest difference between min and max) for autoscaling - is it possible to retrieve the calculated min and max datapoint value from some kendoui internal variables?
Thanks.

 Raido

1 Answer, 1 is accepted

Sort by
0
Accepted
T. Tsonev
Telerik team
answered on 15 Apr 2014, 08:26 AM
Hello,

The min/max ratio that will extend the range to 0 is hard-coded to 20%. We'll consider exposing it as an option, but in the meantime you can disable this behavior completely:
valueAxis: {
    narrowRange: true
}


This will instruct the chart to keep the value axis range as close to the actual values as possible.
I hope this helps.

Regards,
T. Tsonev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Charts
Asked by
JamesD
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or