v3 How Do I Display Bar Value In Tooltip? #9240
-
I just started using chart.js so am on latest v3 version. I'm trying to do something simple but it seems overly complicated or not possible? I want to replace the default tooltip so that when I hover over a specific bar in a bar chart the tooltip would only display the value for the bar I hovered over. I found the external example helpful however it only applies if you want to display ALL the values in a tooltip. I dug into the context to see what's available but I can't find anything to tie the current bar context and the datapoints. Thank you for any help in direction to take to accomplish what I need. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You are searching for "interaction mode". Try |
Beta Was this translation helpful? Give feedback.
You are searching for "interaction mode". Try
point
for example.https://www.chartjs.org/docs/latest/samples/tooltip/interactions.html