[Chartjs]-Chart.js tooltip position, tooltip not displayed

2👍

Tooltips have two positioning modes, as per the documentation:

Possible modes are:

  • ‘average’
  • ‘nearest’

‘average’ mode will place the tooltip at the average position of the items displayed in the tooltip. ‘nearest’ will place the tooltip at the position of the element closest to the event position.

You can see both modes in operation at the relevant samples page.

average is the default mode. From your description, switching to nearest should resolve your issue.

Leave a comment