Search
[JavaScript] datalabels are not displayed in chart.js
- M.R
- Jan 3, 2024
- 1 min read
Phenomenon
I draw graphs using chart.js.
options: {
plugins: {
datalabels: {
I wanted to display the label with above code, but it is not displayed
Cause and Solution
Add the following to the same level as 'options:'
plugins: [
ChartDataLabels,
],
Comentários