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.
This commit is contained in:
Cameron Childress
2017-12-29 02:52:17 -05:00
committed by Simon Brunel
parent 92d033beb2
commit 9874a754e0

View File

@@ -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.