[Chartjs]-Chart JS not showing On hover with small data

0👍

try adding commonSeriesSettings property to your chart

commonSeriesSettings: {

hoverMode: ‘includePoints’, selectionMode: ‘includePoints’,

}

0👍

If intersect is set to true, the tooltip mode applies only when the mouse position intersects with an element. If false, the mode will be applied at all times. more about tooltip configuration is here

const options = {
      plugins: {
        tooltip: {
          interaction:{
            intersect: false,
          },
        },
      },
    };

Leave a comment