javascript - Dygraphs: How to use both range-selector and manual zooming - Stack Overflow

If the range-selector is set to true, the manual zooming with the mouse is off. I would like to have bo

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

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

Share asked Jan 9, 2016 at 15:44 Wolfgang MeinckeWolfgang Meincke 931 silver badge5 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 16

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1743679822a4489188.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信