From 287633a436f9790ed66a69c3e782efe9007917a6 Mon Sep 17 00:00:00 2001 From: LeeLenaleee <39033624+LeeLenaleee@users.noreply.github.com> Date: Thu, 24 Dec 2020 15:40:13 +0100 Subject: [PATCH] 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.` --- docs/docs/developers/plugins.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { //.. } }] -- 2.47.3