From: Jacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com> Date: Wed, 19 May 2021 14:40:10 +0000 (+0200) Subject: add legend to the default onclick to make sample work (#9126) X-Git-Tag: v3.3.0~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6f7d5fbb64158ef936c599076f2f707e440f23a9;p=thirdparty%2FChart.js.git add legend to the default onclick to make sample work (#9126) --- diff --git a/docs/configuration/legend.md b/docs/configuration/legend.md index 0be48c975..f708f30e0 100644 --- a/docs/configuration/legend.md +++ b/docs/configuration/legend.md @@ -176,7 +176,7 @@ var newLegendClickHandler = function (e, legendItem, legend) { if (index > 1) { // Do the original logic - defaultLegendClickHandler(e, legendItem); + defaultLegendClickHandler(e, legendItem, legend); } else { let ci = legend.chart; [