Example code plugin outdated (#8230)

Update example code.
As stated in the migration guide: `All plugin hooks have unified signature with 3 arguments: chart, args and options.`
This commit is contained in:
LeeLenaleee 2020-12-24 15:40:13 +01:00 committed by GitHub
parent 3ffcd93d10
commit 287633a436
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ Plugins can also be defined directly in the chart `plugins` config (a.k.a. *inli
```javascript
var chart = new Chart(ctx, {
plugins: [{
beforeInit: function(chart, options) {
beforeInit: function(chart, args, options) {
//..
}
}]