1👍
To show the label of line annotation, you need to set display: true
and not enabled
options.
Therefore your label config should be:
label: {
display: true, // <-- NOT enabled
content: "Hi !!",
backgroundColor: "rgba(255, 26, 104, 0.8)",
color: "black",
},
- Chartjs-ChartJS – Horizontal Stacked Bar Chart Tooltip being cut off by Bottom of Canvas
- Chartjs-Uncaught Error: Can't resolve all parameters for Chart: (?, ?) in Ionic2
Source:stackexchange.com