Synchronizer with multiple y-axis, y2 #798

Open
dc-philspindler opened this Issue Nov 1, 2016 · 0 comments

Projects

None yet

1 participant

@dc-philspindler

Synchronizer vertical (yaxis) zoom does not work if graphs have multiple y-axis.

An update to function attachZoomHandlers in synchronizer.js changing

if (syncOpts.range) opts.valueRange = me.yAxisRange();

to

if (syncOpts.range) {
if (me.axes_.length<2) {
opts.valueRange = me.yAxisRange;
} else {
opts.axes = {y : {valueRange : me.yAxisRange(0)}, y2 : {valueRange : me.yAxisRange(1)}};
}
}

seems to address the issue.

Using dygraph-1.1.1 and latest syncronizer.js from github (b55a71d on Jul 11) with modification per StackOverflow Q/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment