Prevent the tooltip from disappearing in chart.js line graph

180 Views Asked by At

Is it possible to prevent the tooltip from disappearing when clicking outside the line graph itself? I want it to always be visible on the latest datapoint clicked.

Im using chart.js 3.9.1 in vue

Thanks :)

1

There are 1 best solutions below

1
Mohammad Hosseini On

Please try it:

Namespace: options.plugins.tooltip, the global options for the chart tooltips is defined in Chart.defaults.plugins.tooltip.

for complete details, you can check this link, my friend.