mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-02-01 17:47:09 +00:00
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:
parent
3ffcd93d10
commit
287633a436
@ -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) {
|
||||
//..
|
||||
}
|
||||
}]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user