If the range-selector is set to true, the manual zooming with the mouse is off. I would like to have both. Is it possible to use both range-selector and manual zooming with the mouse with the dygraphs library? How does this work?
Regards, Wolfgang
When you set the showRangeSelector
option, it changes the interaction model for the main chart so that drag=pan. If you don't want this, you can reset it to the default (drag=zoom) explicitly:
new Dygraph(div, data, {
showRangeSelector: true,
interactionModel: Dygraph.defaultInteractionModel
});
Here's a full fiddle.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With