From a17be4c57e094d7f9a3fa90e45efda51f18289de Mon Sep 17 00:00:00 2001 From: Trask Stalnaker Date: Fri, 14 Jun 2013 22:13:44 -0500 Subject: [PATCH] Highlight vertexes when no points When series.points.show is false, currently a ring appears on highlight around where the point would have been. Instead, display the point on highlight. --- jquery.flot.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/jquery.flot.js b/jquery.flot.js index e5c4102..6aab9d6 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -3278,10 +3278,17 @@ Licensed under the MIT license. return; } - var pointRadius = series.points.radius + series.points.lineWidth / 2; + var pointRadius; + var radius; + if (series.points.show) { + pointRadius = series.points.radius + series.points.lineWidth / 2; + radius = 1.5 * pointRadius; + } else { + pointRadius = series.points.radius; + radius = 0.5 * pointRadius; + } octx.lineWidth = pointRadius; octx.strokeStyle = highlightColor; - var radius = 1.5 * pointRadius; x = axisx.p2c(x); y = axisy.p2c(y);