-
Im making a Plot where I have two dot marks that I want tooltips for but I think this is causing some collisions/bugs? Can be seen here: https://observablehq.com/d/105e4ba3b783bcd2
Is this because of how my data is structured? Does anyone have any suggestions? Any help appreciated!! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Plot doesn’t currently make any attempt to coordinate the display of multiple concurrent tips, so this is the intended behavior when you set the tip option to true on multiple marks. If you want to only display one tip at a time, you should only set the tip option to true on a single mark (perhaps flattening your data so that the start and end values are combined into a taller table). Or, in a case like this, perhaps you could hard-code the two tips’ anchor option to left and right so they are less likely to overlap. |
Beta Was this translation helpful? Give feedback.
Plot doesn’t currently make any attempt to coordinate the display of multiple concurrent tips, so this is the intended behavior when you set the tip option to true on multiple marks. If you want to only display one tip at a time, you should only set the tip option to true on a single mark (perhaps flattening your data so that the start and end values are combined into a taller table). Or, in a case like this, perhaps you could hard-code the two tips’ anchor option to left and right so they are less likely to overlap.