How can I stop the Y axis from automatically scaling?

« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by Richa Singh on 1st January 2016
I am using Line Graph with adjustable points in an MVC application and for some functionality I need to stop Y Axis from auto scaling when we drag points below.
So can you please help in doing this.

Thanks for help in advance.
Posted by Richard on 28th May 2014
You can set the ymax option:

obj.set('ymax', 500);

Posted by Richa Singh on 28th May 2014
Thank you so much ,it helped a great deal :)
Posted by Kurt Silver on 20th June 2014
Is it possible to have an asymmetric y scale? My client would like a much "deeper" negative scale than positive, say, from 10000 to -50000. Is this possible? thanks for any information.

Posted by Richard on 20th June 2014
You can do it - but it's not a built in option so it's not as straight forward as setting an option. Here's an example:


Add a reply

« Back to message list