How to show tooltips on line chart without hovering the single point #9828
-
I wanted to know if there is a way to show the tooltip on the line chart without going exactly hover the small single point but always, exactly like highcharts or Google. linechartotolip.mp4 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Take a look at https://www.chartjs.org/docs/latest/samples/tooltip/interactions.html Edit: not shown in the sample, but you can further adjust the interactions with new Chart(ctx, {
data: {...},
options: {
interaction: {
mode: 'nearest',
axis: 'x',
intersect: false
}
}
}); |
Beta Was this translation helpful? Give feedback.
-
For me not work. |
Beta Was this translation helpful? Give feedback.
-
Not Worked |
Beta Was this translation helpful? Give feedback.
Take a look at https://www.chartjs.org/docs/latest/samples/tooltip/interactions.html
Edit: not shown in the sample, but you can further adjust the interactions with
axis: 'x' | 'y' | 'xy'
.I usually end up using: