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 simonbrunel committed Dec 29, 2017
1 parent cb90072 commit a2afb0e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/configuration/legend.md
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 a2afb0e

Please sign in to comment.