Using Chart.js, how do I avoid having tooltips overlap?
问题 I am using Chart.js via Angular Char. I have displayed all the tooltips in order to download a chart with the information displayed by creating a plugin. The tooltips overlap, there doesn't seem to be any logic to distribute them so that they don't. Is there a way to do this? Some of the plugin code. This isn't important to my question. The 'beforeRender' function creates a new Chart.Tooltip for each item in the dataset and afterDraw renders them: // turn on tooltips chart.options.tooltips