Any examples of Flot with floating tooltips?

2019-03-11 04:11发布

I am currently working on a Flot graph, the API which seems pretty powerful overall, although examples of advanced use are not widely documented.

The API suggests there are ways to set hoverable on the graph, not that I am sure what exactly that means I can do with it.

I would like to know if anyone could contribute some examples that they have come across, or code for that matter, which demonstrate examples of any of the following:

  • Dynamic tooltips triggered by hover over events on Flot chart elements
  • Tick tooltips (hovering over the xaxis shows detail)
  • Any kind of hover over / dynamic event binding which has been used w Flot

The effect I am looking for is similar to this Open Flash Chart example

7条回答
兄弟一词,经得起流年.
2楼-- · 2019-03-11 04:30

Have a look at this flot example which demonstrates tooltips for plot points on the chart. (Make sure you select the Enable tooltip checkbox.)

查看更多
我只想做你的唯一
3楼-- · 2019-03-11 04:43

http://data.worldbank.org is built using Flot and uses tooltips.

查看更多
不美不萌又怎样
4楼-- · 2019-03-11 04:43

http://craigsworks.com/projects/qtip2/demos/#flot is my favorite JS tooltip library. Its pretty badass and has flot integration.

查看更多
何必那么认真
5楼-- · 2019-03-11 04:50

You can add custom data to the data array and use that to display tooltips.

See my answer and full example here: displaying custom tooltip when hovering over a point in flot

查看更多
Anthone
6楼-- · 2019-03-11 04:52

Check out this library for tooltip and flot integration

https://github.com/krzysu/flot.tooltip

查看更多
疯言疯语
7楼-- · 2019-03-11 04:53

There is also a simple tooltip plugin for it, you can find it here

And I also add some feature to the plugin, you can find it on github. https://github.com/skeleton9/flot.tooltip

查看更多
登录 后发表回答