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

[Solved] Toggle auto/fixed scaling charts

2 Answers 73 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Achilles
Top achievements
Rank 1
Achilles asked on 26 Mar 2013, 11:42 AM
Hi,

Is it possible to toggle between auto scaling and fixed scaling of the Value Axis of charts.
In case a chart is created with auto-scaling, I can scale it to a fixed Y axis with something like
    chart.options.valueAxis[1].max = 50;

But how do I remove the max value ?
chart.options.valueAxis[1].max = null;
doesn't seem to have the desired effect

Warm Regards

Raja

2 Answers, 1 is accepted

Sort by
0
Hristo Germanov
Telerik team
answered on 28 Mar 2013, 02:34 PM
Hi Achilles,

Could you try to remove this option from the chart options? For example you can do something like that:

delete chart.options.valueAxis[1].max;
chart.refresh();

All the best,
Hristo Germanov
the Telerik team
Check out the successor of Telerik MVC Extensions - Kendo UI for ASP.NET MVC - and deem it for new ASP.NET MVC development.
0
Achilles
Top achievements
Rank 1
answered on 01 Apr 2013, 05:51 AM
Hi Hristo,

This did solve the issue.
Thanks a lot

Regards

Achilles
Tags
Chart
Asked by
Achilles
Top achievements
Rank 1
Answers by
Hristo Germanov
Telerik team
Achilles
Top achievements
Rank 1
Share this question
or