Stop the Y axis from automatically scaling

Share RGraph:   Share or Like RGraph on Facebook!

« 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 28th May 2014
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);





Richard
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.

Kurt
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 some examples:

www.rgraph.net/demos/line-quarter-axis2.html
www.rgraph.net/demos/line-quarter-axis.html
www.rgraph.net/demos/line-quarter-axis-inverted.html
www.rgraph.net/demos/line-quarter-axis-dual-color.html






Richard

Add a reply




« Back to message list