vega icon indicating copy to clipboard operation
vega copied to clipboard

Add tooltips

Open domoritz opened this issue 8 years ago • 3 comments

Using https://github.com/vega/vega-tooltip. Depends on #1.

domoritz avatar Mar 03 '18 22:03 domoritz

Haven't looked closely enough at the underlying code yet, but perhaps https://beta.observablehq.com/@freedmand/vegalite-tooltip could help.

It doesn't seem to work as expected though, as the tooltip remains the same regardless of which part of the timeline the mouse hovers over.

hydrosquall avatar Mar 15 '18 20:03 hydrosquall

The tooltips can't work on pure line or area charts because these are only a single mark. You can add an overlay with points to make it work. See https://github.com/vega/vega-tooltip/issues/120

domoritz avatar Mar 15 '18 21:03 domoritz

We are working on a tooltip specification for Vega and Vega-Lite. Until then, I recommend not to make any changes to this library and just use the Vega and Vega-Lite tooltip channels.

domoritz avatar Apr 04 '18 04:04 domoritz