I’m looking for a way to activate a/some datapoint(s) on a jquery flot line chart by triggering a click on an external button. How could i do this – how would i get a handle on a datapoint without using the mouse – and how would i activate it and activate a tooltip?
Thanks for any expert advice!
In my previous comment I was unaware of the API hooks and methods that exist in FLOT. The old docs were a very primitive
txtfile. Here is a simple example usinghighlight/unhighlightas well as using thepointOffset()method to calculate a data point’s pixel position in the chart in order to position a tooltip.JS:
DEMO: http://jsfiddle.net/et87Y/73/