]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Update showLine location in defaults (#8199)
authorLeeLenaleee <39033624+LeeLenaleee@users.noreply.github.com>
Sat, 19 Dec 2020 07:52:27 +0000 (08:52 +0100)
committerGitHub <noreply@github.com>
Sat, 19 Dec 2020 07:52:27 +0000 (09:52 +0200)
Current defaults was wrong.
Working example: https://jsfiddle.net/Leelenaleee/vL7d6yp0/5/

docs/docs/configuration/index.md

index 68f161fe19d3ce15e3c9e0daaea50fc8c1e97df0..7abba9e838ddc763fe6d5783c5b107bd74fea331 100644 (file)
@@ -50,7 +50,7 @@ The following example would set the `showLine` option to 'false' for all line da
 
 ```javascript
 // Do not show lines for all datasets by default
-Chart.defaults.datasets.line.showLine = false;
+Chart.defaults.controllers.line.showLine = false;
 
 // This chart would show a line only for the third dataset
 var chart = new Chart(ctx, {