topfunky / gruff

Gruff graphing library for Ruby

Home Page:http://gruff.rubyforge.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to set y axis range?

lokeshh opened this issue · comments

Hi

Great library. How can I set the range of the y axis that is displayed on the graph? For example I want the y values to show between 0 to 10. How may I do it?

Thanks

You can set them using maximum_value and minimum_value method.

https://www.rubydoc.info/github/topfunky/gruff/Gruff/Base#maximum_value-instance_method