From: LeeLenaleee <39033624+LeeLenaleee@users.noreply.github.com> Date: Thu, 24 Dec 2020 14:40:13 +0000 (+0100) Subject: Example code plugin outdated (#8230) X-Git-Tag: v3.0.0-beta.8~34 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=287633a436f9790ed66a69c3e782efe9007917a6;p=thirdparty%2FChart.js.git 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.` --- diff --git a/docs/docs/developers/plugins.md b/docs/docs/developers/plugins.md index cd3d62386..3156ac14c 100644 --- a/docs/docs/developers/plugins.md +++ b/docs/docs/developers/plugins.md @@ -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) { //.. } }]