chartjs / chartjs-plugin-datalabels

Chart.js plugin to display labels on data elements
https://chartjs-plugin-datalabels.netlify.app
MIT License
863 stars 459 forks source link

docs: add stack labels example #408

Open jlozovei opened 5 months ago

jlozovei commented 5 months ago

Adding stack labels example, on Advanced > Custom Labels page, using a custom formatter to display stack series label instead of series value.

Found this issue to solve a problem, and it led me to a smoother solution which I think would be useful to others.

Working example of the formatter: https://codepen.io/jlozovei/details/NWJpYvy

Stack labels example

Sneak peek on the proposal