Dynamically adjust y-min/max after range-selector in Dygraph -
when range selector used shrink/expand viewing x-range, y axis remains unchanged. there way update these values based on current min/max?
i know there way update settings, problem don't know how capture current min/max on range selector. have set function gets called on draw() callback thing i'm missing how calculate current range min/max values.
it sounds want call yaxisrange
method:
yaxisrange(idx)
returns currently-visible y-range axis. can affected zooming, panning or call updateoptions. axis indices zero-based. if called no arguments, returns range of first axis. returns two-element array: [bottom, top].
Comments
Post a Comment