Synchronizer with multiple y-axis, y2 #798

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


None yet

1 participant


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();


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