From: Eric Perry Date: Tue, 18 Aug 2015 21:56:19 +0000 (-0400) Subject: The datasetStroke option has been fixed for line graphs X-Git-Tag: v1.1.0~57^2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=refs%2Fpull%2F1389%2Fhead;p=thirdparty%2FChart.js.git The datasetStroke option has been fixed for line graphs --- diff --git a/.gitignore b/.gitignore index 3969d0aad..1986497d0 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,5 @@ node_modules/* custom/* docs/index.md + +.settings/ diff --git a/src/Chart.Line.js b/src/Chart.Line.js index 2ca73db65..04a81f193 100644 --- a/src/Chart.Line.js +++ b/src/Chart.Line.js @@ -355,7 +355,9 @@ } }, this); - ctx.stroke(); + if (this.options.datasetStroke) { + ctx.stroke(); + } if (this.options.datasetFill && pointsWithValues.length > 0){ //Round off the line by going to the base of the chart, back to the start, then fill.