Update showLine location in defaults (#8199)

Current defaults was wrong.
Working example: https://jsfiddle.net/Leelenaleee/vL7d6yp0/5/
This commit is contained in:
LeeLenaleee 2020-12-19 08:52:27 +01:00 committed by GitHub
parent f16e836c3d
commit e529775d5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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, {