Commit a17be4c5 authored by Trask Stalnaker's avatar Trask Stalnaker

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.
parent 4318eeae
...@@ -3278,10 +3278,17 @@ Licensed under the MIT license. ...@@ -3278,10 +3278,17 @@ Licensed under the MIT license.
return; 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.lineWidth = pointRadius;
octx.strokeStyle = highlightColor; octx.strokeStyle = highlightColor;
var radius = 1.5 * pointRadius;
x = axisx.p2c(x); x = axisx.p2c(x);
y = axisy.p2c(y); y = axisy.p2c(y);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment