Replies: 1 comment
-
The tooltip options has a ...
filter: (item) => {
// Don't show any tooltip items that are zero
return item.raw != 0
}, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello
I'm using chart.js 4.2.1 as shown below. This works but the tooltip shows a lot of similar labels because data points are sometimes overlapping. So for example when hovering over a datapoint the tooltip could show
[label1, label1, label1, label1,...., label1]
or[label1, label1, label2, label1, label2, label2,...]
. I would like to remove redundant labels from the tooltip. So the first example should result in[label1]
and the second example in[label1, label2]
How can I filter out redundant labels in the tooltip?
Beta Was this translation helpful? Give feedback.
All reactions