简体   繁体   English

可滚动的绘图表

[英]Scrollable Flot Chart

I have a flot chart that is a nice line chart. 我有一个浮动图表,它是一个不错的折线图。 Currently, if you click and drag over the chart, it will select the dragged-over area and when you let up the mouse, it will zoom into the selection. 当前,如果您单击并拖动图表,它将选择被拖动的区域,而当您松开鼠标时,它将放大选择。 What I want, is for that behavior, but to then put a scrollbar under the chart that lets me scroll through the data at the current zoom level. 我想要的是针对该行为的方法,但是接下来要在图表下方放置一个滚动条,让我可以在当前缩放级别滚动浏览数据。 What I am looking for here is the general way to hook into Flot that allows me to define what part of the data is currently visible. 我在这里寻找的是挂接到Flot的通用方法,该方法使我可以定义当前可见的数据部分。 Thanks in advance. 提前致谢。

You should check out the navigation plugin which allows panning and zooming. 您应该查看允许平移和缩放的导航插件

The example there lets you pan using a compass arrow interface, but there is no reason you couldn't use something like a scroll bar instead. 此处的示例使您可以使用指南针箭头界面进行平移,但是没有理由您不能使用滚动条之类的东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM