react-vega icon indicating copy to clipboard operation
react-vega copied to clipboard

Hover handlers don't work in Vega-Lite

Open domoritz opened this issue 6 years ago • 8 comments

domoritz avatar Jul 10 '19 11:07 domoritz

What do you mean is doesn't work? I ran the storybook example and hovers on some of the bars and it updates the component state

hungngo97 avatar Jul 11 '19 21:07 hungngo97

Hmm, didn't work for me. Let me try again.

domoritz avatar Jul 12 '19 06:07 domoritz

Definitely doesn't work for me.

editor

domoritz avatar Jul 12 '19 08:07 domoritz

I did yarn install && yarn build && yarn storybook from a fresh new cloned repo

hungngo97 avatar Jul 16 '19 05:07 hungngo97

And you then see the actions being logged like in Vega?

domoritz avatar Jul 16 '19 07:07 domoritz

@domoritz I'm not sure how to fix this one as vega-lite doesn't issue signal hover. The signal handlers use view.addSignalListeners(signalName, handler) The tooltip does work tho.

kristw avatar Sep 15 '19 01:09 kristw

Vega-Embed doesn't enable hover handling by default for Vega-Lite. See https://github.com/vega/vega-embed/blob/5042fe105f7ede9500f3cbc4211bfddbd1bc13f8/src/embed.ts#L297. Maybe that's the reason this doesn't work.

domoritz avatar Sep 15 '19 04:09 domoritz

Hover handler do not work in vega-lite for me, too. Is there any way to get it done? Thanks.

shenenya avatar Oct 27 '19 04:10 shenenya