From 9874a754e0324cf49df9b2e2a485e44c729eeec3 Mon Sep 17 00:00:00 2001 From: Cameron Childress Date: Fri, 29 Dec 2017 02:52:17 -0500 Subject: [PATCH] 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. --- docs/configuration/legend.md | 4 ++++ 1 file changed, 4 insertions(+) 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. + + -- 2.47.3