[Chartjs]-DIsplay information when hovering over chart โ€“ chartjs

2๐Ÿ‘

โœ…

I think you are referring to the tooltip which is showed when hovering the data elements.

You can change the data to show leveraging on tooltip callbacks, described in the doc: https://www.chartjs.org/docs/latest/configuration/tooltip.html#tooltip-callbacks

plugins: {
  tooltip: {
    callbacks: {
      label: () => 'my text'
    }
  }
}

Leave a comment