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

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -