0👍
✅
Got the answer. Not really rocket science:
plugins: {
datalabels: {
formatter: function(value, context) {
return value['y'];
}
}
}
Basically within the formatter value is the label’s content itself for every piece of data. I found this within the docs but my use case wasn’t the same and I mistook the display option for formatter.
Source:stackexchange.com