有没有办法让flot平滑滚动?
我目前正在使用 flot 示例页面中的此图表。我只是想知道是否有办法让变焦更平滑或更生动。最新版本的 flot 是否支持此功能,或者是否有一个好的 hack 可以做到这一点?
I am currently using this chart from flot's examples page. I was just wondering if there is a way to make the zoom smoother or more lively. Is this supported in the latest version of flot or is there a good hack that can do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不确定,但我在调整大小插件时遇到了类似的问题。我在 div 中有浮点图,需要随浏览器窗口增大/缩小,并且调整大小也具有相同的波动性。我发现调整大小插件有一个内置的 250 毫秒重绘延迟。我将其更改为 0,结果非常顺利。
我会在平移/缩放动画中寻找类似的东西,因为它看起来非常相似。
I'm not sure, but I had a similar problem with the resize plugin. I had flot graphs in a div that needed to grow/shrink with the browser window, and resizeing had the same choppiness. I found the resize plugin had a built-in 250ms delay for redrawing. I changed this to 0 and the result was perfectly smooth.
I'd look for something similar in the pan/zoom animation as it seems very similar.