How to make all dataset values show in tooltip at same time? #9082
Answered
by
LeeLenaleee
danthegoodman1
asked this question in
Q&A
-
I was wondering how I might go about setting the tooltip so it always shows the values of both of the datasets on hover over a point, instead of just the dataset I am hovering over like seen in the first image. Any guidance would be greatly appreicated! My chart: What I want to get (tooltip showing both datasets): Code:
|
Beta Was this translation helpful? Give feedback.
Answered by
LeeLenaleee
May 13, 2021
Replies: 1 comment 1 reply
-
In the plugins section of your options you have to specify the tooltip mode to index like so: options: {
plugins: {
tooltip: {
mode: 'index'
}
}
} Live example: https://www.chartjs.org/docs/master/samples/tooltip/interactions.html |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
kurkle
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the plugins section of your options you have to specify the tooltip mode to index like so:
Live example: https://www.chartjs.org/docs/master/samples/tooltip/interactions.html