Skip to content
This repository

Expose Plot.findNearbyItem method #33

Open
wants to merge 1 commit into from

1 participant

Xavier Spriet
Xavier Spriet
  • Allows detection of items outside of the plothover event.

I ran into a need to locate the point closest to a position, and noticed that the logic was already fully implemented, but not exposed as a public method. I couldn't find a good reason for findNearbyItem to remain private, so this commit exposes it as a public method.

Xavier Spriet loginx Expose plot.findNearbyItem()
* Allows detection of items outside of the plothover event.
8884605
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Dec 23, 2011
Xavier Spriet loginx Expose plot.findNearbyItem()
* Allows detection of items outside of the plothover event.
8884605
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. +1 0  jquery.flot.js
1  jquery.flot.js
@@ -186,6 +186,7 @@
186 186 };
187 187 plot.getXAxes = function () { return xaxes; };
188 188 plot.getYAxes = function () { return yaxes; };
  189 + plot.findNearbyItem = findNearbyItem;
189 190 plot.c2p = canvasToAxisCoords;
190 191 plot.p2c = axisToCanvasCoords;
191 192 plot.getOptions = function () { return options; };

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.