admin管理员组

文章数量:1384701

Using the flot library, how can I show the point only when hovering over that spot on the line? I don't want all dots visible all the time..

Similar to how google does it: See the first example: .html

Can't use google since I need to bine multiple chart types. I also like that with google you don't have to hover over the exact point, close enough and the tooltip is triggered as well.

Can flot do this? Or any other libraries?

Edit: these guys appear to be using flot, but I'm not sure how they do it?

Using the flot library, how can I show the point only when hovering over that spot on the line? I don't want all dots visible all the time..

Similar to how google does it: See the first example: http://code.google./apis/chart/interactive/docs/gallery/linechart.html

Can't use google since I need to bine multiple chart types. I also like that with google you don't have to hover over the exact point, close enough and the tooltip is triggered as well.

Can flot do this? Or any other libraries?

Edit: these guys appear to be using flot, but I'm not sure how they do it? https://www.portfolionumbers./tools/risk/report

Share Improve this question edited Dec 15, 2011 at 12:39 asked Dec 15, 2011 at 12:14 user429620user429620
Add a ment  | 

1 Answer 1

Reset to default 6

In the option object you can specify something like:

{
    series: { lines: { show: true }, points: { show: false } },
    grid: { hoverable: true, clickable: false }
}

本文标签: javascriptFlot charting library show points on line chart only on hoverStack Overflow