Looking at the documentation, i'm struggling to find a solution for rendering a chart with the attached data structure.
Could anyone help answering if and how the below is possible?
Has anyone been able to achieve this with the library?
Thanks in advance.
I haven't seen that done before. But I can see a possible alternative solution.
You can use the chartjs datalabels plugin, which allows you to put labels on the data itself.
Here is an example: https://chartjs-plugin-datalabels.netlify.com/samples/charts/bar.html with the source code here: https://github.com/chartjs/chartjs-plugin-datalabels/blob/master/samples/charts/bar.html
First you'll have to install the datalabels plugin, and add the datalabels parameter to your data.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With