From: Cameron Childress Date: Fri, 29 Dec 2017 07:52:17 +0000 (-0500) Subject: Adding helpful note about legendCallback (#5094) X-Git-Tag: v2.7.2~1^2~29 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9874a754e0324cf49df9b2e2a485e44c729eeec3;p=thirdparty%2FChart.js.git Adding helpful note about legendCallback (#5094) I didn't realize you had to call generateLegend() manually and a quick search tells me that lots of other people have run into this too. --- diff --git a/docs/configuration/legend.md b/docs/configuration/legend.md index bce69af79..52bee8687 100644 --- a/docs/configuration/legend.md +++ b/docs/configuration/legend.md @@ -164,3 +164,7 @@ var chart = new Chart(ctx, { } }); ``` + +Note that legendCallback is not called automatically and you must call `generateLegend()` yourself in code when creating a legend using this method. + +