在Dygraph中同时激活rangeSelector和animateZoom [英] Making rangeSelector and animateZoom both active at the same time in Dygraph

查看:65
本文介绍了在Dygraph中同时激活rangeSelector和animateZoom的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在使用Dygraph绘制的垂直条形图中同时使用动画缩放和范围选择器.将animateZoom和rangeSelector选项都设置为true无效.但是这两个中的任何一个都可以单独工作,请给我建议解决方案.任何帮助将不胜感激.

I want to use both animated zoom and range selector in the vertical barchart plotted using Dygraph. Setting both animateZoom and rangeSelector options to true is not working . But any one of these two are working fine individually.Please suggest me the solution. Any help would be greatly appreciated.

推荐答案

这两个选项不能很好地配合使用,因此禁用了该组合.选择范围后,通常可以通过拖动选定范围任一端的手柄来放大图表.产生的mousemove事件序列导致看起来像是动画缩放.在这些事件之间缩放动画是多余的.

Those two options don't work very well together, so the combination is disabled. When you have a range selection, you typically zoom the chart by dragging the handles on either end of the selected range. The resulting sequence of mousemove events results in what looks like an animated zoom. Animating the zooms between those events would be superfluous.

这篇关于在Dygraph中同时激活rangeSelector和animateZoom的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆