shutterstock / rickshaw

JavaScript toolkit for creating interactive real-time graphs
https://shutterstock.github.io/rickshaw
MIT License
6.53k stars 939 forks source link

Issue with Y-axis height #118

Closed praveen21 closed 12 years ago

praveen21 commented 12 years ago

if Y values are like {20,30,25,28,30.2} then in the graph for Y-axis it is taking 30 as maximum value., and for 30.2 in the graph there is a slight cut.

I am beginner to JavaScript can any one help me how to custom set the logic of y-axis.

I just want to add 2 values more to the Y-axis. so that graph cannot be overflow from svg.

dchester commented 12 years ago

Hi, you can specify a top padding if you like: https://github.com/shutterstock/rickshaw#padding

Does that do what you're looking for?