mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-04 15:34:04 +01:00
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:
committed by
Simon Brunel
parent
92d033beb2
commit
9874a754e0
@@ -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.
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user