cartjs tooltips displays in the wrong place on a chart
问题 I just added tooltips: { mode: 'index', intersect: true } to this particular chart setup The problem is that tooltip drops always in the wrong place So I am hovering on a particular point on the chart but tooltip displays in completely different spot. Any ideas how to fix? 回答1: From the sample code you provided in your comment to my first answer, I see that the values of your datasets don't start at the same x-position. Therefore mode: 'index' doesn't work and you should use mode: 'x' instead