"Faceted" Tip marks #2309
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
One way to retrieve all the values for a given x is to group on x, but I'm not sure that's what you want here? Can you share a notebook with some data and your current code? thanks |
Beta Was this translation helpful? Give feedback.
-
Something like this: https://observablehq.com/d/e37999feb36b3c82 But I want the tip to show ALL the Y values in the one tip box. The reason being this chart could have 20+ lines all plotted and they can overlap and it becomes really hard to hover over a single line, so the idea was to instead just track the mouse over the X axis and then pull all Y values into a single tip. But currently the tip only shows the one matching X/Y that's closest to the mouse. Here's what it looks like: Sorry if I'm not describing it well, it's hard to describe. Thanks for the suggestion about group; I'll take a quick look at that. |
Beta Was this translation helpful? Give feedback.
Here's a fancy implementation of the idea
https://observablehq.com/@observablehq/plot-grouped-tips