Commit 9671e73d authored by David Schnur's avatar David Schnur

Merge pull request #1113 from trask/highlight-vertexes-when-no-points

Highlight vertexes when no points
parents 9bb52ea5 a17be4c5
...@@ -3295,10 +3295,17 @@ Licensed under the MIT license. ...@@ -3295,10 +3295,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