Chartjs-The annotation message does not appear. with Chart.js , react-chart-js , and chartjs-plugin-annotation

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",
      },

Leave a comment