Data Labels
I wanted to show the data on each chart so that when they are downloaded the data makes sense.
1 | npm i chartjs-plugin-datalabels --save |
Not sure if its the best way but I created a component which I then add to the DOM as a fragment containing the config for all charts and the plugins.
1 | import React from "react"; |