javascript rickshaw graph auto scale -
i plotting rickshaw graph, in y-axis, need scale properly.
i this:
var graph = new rickshaw.graph( { element: document.getelementbyid("chart"), renderer: 'multi', min:165000000, max:176000000, width: 1000, height: 500, ....
but hope can automatically scale in y-axis, instead of hard code "min" , "max" here. has simple example this? thanks
it seems need go through data in series, , detect min , max.
there example on rickshaw website scaled series: http://code.shutterstock.com/rickshaw/examples/scaled.html
if @ source code, see they're manually going through series data , finding data extremums.
Comments
Post a Comment