Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I add tooltip to barplot using VegaSignal? #155

Open
kskoeld opened this issue Apr 23, 2018 · 3 comments
Open

How can I add tooltip to barplot using VegaSignal? #155

kskoeld opened this issue Apr 23, 2018 · 3 comments

Comments

@kskoeld
Copy link

kskoeld commented Apr 23, 2018

Would love to understand your library a bit better and to tweak the outcome a bit - maybe contribute to the project as well.
But I'm already struggling trying to understand how I could add signals to the barplot.
As this Vega example shows the properties are straight forward:
"signals": [ { "name": "tooltip", "value": {}, "on": [ {"events": "rect:mouseover", "update": "datum"}, {"events": "rect:mouseout", "update": "{}"} ] } ],
But I can't figure out how to use the VegaSignal primitive and add a simple toogle to he barplot function.

@randyzwitch
Copy link
Collaborator

Hi @kskoeld , is that vega signals JSON from v2 or v3 of Vega?

@kskoeld
Copy link
Author

kskoeld commented Apr 25, 2018

Actually I was thinking of v3, since it's been out for a while and I can't even find the documentation for v2 anymore. But then I just saw that vega.jl is not working with v3 yet.
Suggestions on what the quickest route to get signals working would be?

@randyzwitch
Copy link
Collaborator

To be honest, I don't know. This package is somewhat dormant, as I haven't had a lot of time to convert this over to v3 of Vega. I never did anything with Signals in v2, so I never really validated that it worked within Vega.jl.

Does this have to be in Vega, or are you just looking for interactivity?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants