Chartjs-ChartJS Annotations display custom label

1👍

onHover API

  options: {
    // LOOK AT ME!!! I'M SO IMPORTANT!!!
    onHover: function onHover (evt, activeElements) {
      if (!activeElements || !activeElements.length) return;
      // logic operation
      this.update();
    },


  },

https://www.chartjs.org/docs/latest/configuration/legend.html

Leave a comment