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

Add more features to .interactive()? #3393

Open
joelostblom opened this issue Apr 4, 2024 · 1 comment · May be fixed by #3394
Open

Add more features to .interactive()? #3393

joelostblom opened this issue Apr 4, 2024 · 1 comment · May be fixed by #3394

Comments

@joelostblom
Copy link
Contributor

What is your suggestion?

I'm wondering if it would be helpful if .interactive() did more by default. I'm primarily thinking about adding a tooltip (of the plotted encodings), and an interactive legend (based on opacity). There should of course be some way to turn these on/off, so that they don't interfere with manually set up bindings (maybe chart.interactive(legend=False).

Have you considered any alternative solutions?

No response

@dangotbanned
Copy link
Member

User feedback

Cross-referencing some feedback I've seen in polars:

pola-rs/polars#17995 (comment)

One advantage of hvplot / bokeh is the free interactivity.
Altair does interactive too but I think only in a subset.
Please consider having a config for interactivity.


pola-rs/polars#17995 (comment)

@joelostblom Thanks for the links.

Yup, whenever it makes sense for it to be the default, at least I would prefer interactive becoming the default.
It may not be acceptable for everyone, so whenever .interactive() is as mature as you'd like, bringing this up a poll/discussion in altair's repo will help understand what users want.


pola-rs/polars#17995 (comment)

The new default plots from Altair have reduced the interactivity of plots. I've gone back to using hvplot because I struggled to get useful images out of Altair.

Was this a premature move considering Altair is missing essential features:

  • zoom to selection
  • resize plot
  • hover to show datapoint

Was the main intent to deliver a basic plotting experience without adding many dependencies?


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

Successfully merging a pull request may close this issue.

2 participants