From 3ae7177d0c286e91e0ddba06e152f79a3b73ae63 Mon Sep 17 00:00:00 2001 From: Djam Saidmuradov Date: Fri, 22 Mar 2013 13:07:43 -0400 Subject: [PATCH] Allow custom stroke color for points. --- jquery.flot.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jquery.flot.js b/jquery.flot.js index 9486fa4..71f98cc 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -483,6 +483,7 @@ Licensed under the MIT license. lineWidth: 2, // in pixels fill: true, fillColor: "#ffffff", + strokeColor: null, symbol: "circle" // or callback }, lines: { @@ -2357,7 +2358,7 @@ Licensed under the MIT license. } ctx.lineWidth = lw; - ctx.strokeStyle = series.color; + ctx.strokeStyle = series.points.strokeColor ? series.points.strokeColor : series.color; plotPoints(series.datapoints, radius, getFillStyle(series.points, series.color), 0, false, series.xaxis, series.yaxis, symbol);