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

Multiple fields in the tooltip channel #803

Closed
timtylin opened this issue May 2, 2018 · 1 comment
Closed

Multiple fields in the tooltip channel #803

timtylin opened this issue May 2, 2018 · 1 comment
Labels

Comments

@timtylin
Copy link

timtylin commented May 2, 2018

I came upon a use case today where the simplest solution is to be able to show values of different fields in the default tooltip provided by the tooltip channel. In the Vega-lite schema this seems easy enough by just specifying a list in the encoding.tooltip key (https://vega.github.io/vega-lite/docs/tooltip.html), but I couldn't figure out how to replicate this using Altair. Is it possible at this point?

@jakevdp
Copy link
Collaborator

jakevdp commented May 2, 2018

Hi – the tooltip story in Altair is not well-developed yet, but we're working on it!

The example you link to makes use of the Vega-Tooltip library, which is not currently supported by any of the available Altair renderers. As of a few days ago, that tooltip functionality has been rolled-in to Vega-Embed. Our plan is to make these sorts of multiple tooltips available soon as we can depend on the frontends supporting it, but for the time being they are not.

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

No branches or pull requests

2 participants