Skip to content

Commit

Permalink
Adding helpful note about legendCallback (chartjs#5094)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cameroncf authored and yofreke committed Dec 30, 2017
1 parent ec97db2 commit 696f953
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/configuration/legend.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.


0 comments on commit 696f953

Please sign in to comment.