Commit 3ae7177d authored by Djam Saidmuradov's avatar Djam Saidmuradov

Allow custom stroke color for points.

parent 0594a491
...@@ -483,6 +483,7 @@ Licensed under the MIT license. ...@@ -483,6 +483,7 @@ Licensed under the MIT license.
lineWidth: 2, // in pixels lineWidth: 2, // in pixels
fill: true, fill: true,
fillColor: "#ffffff", fillColor: "#ffffff",
strokeColor: null,
symbol: "circle" // or callback symbol: "circle" // or callback
}, },
lines: { lines: {
...@@ -2357,7 +2358,7 @@ Licensed under the MIT license. ...@@ -2357,7 +2358,7 @@ Licensed under the MIT license.
} }
ctx.lineWidth = lw; ctx.lineWidth = lw;
ctx.strokeStyle = series.color; ctx.strokeStyle = series.points.strokeColor ? series.points.strokeColor : series.color;
plotPoints(series.datapoints, radius, plotPoints(series.datapoints, radius,
getFillStyle(series.points, series.color), 0, false, getFillStyle(series.points, series.color), 0, false,
series.xaxis, series.yaxis, symbol); series.xaxis, series.yaxis, symbol);
......
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