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

Improve Altair interactive charts: pan/zoom vs selection #870

Closed
mbellitti opened this issue Feb 29, 2024 · 0 comments · Fixed by #1855
Closed

Improve Altair interactive charts: pan/zoom vs selection #870

mbellitti opened this issue Feb 29, 2024 · 0 comments · Fixed by #1855
Labels
enhancement New feature or request

Comments

@mbellitti
Copy link

Description

Using marimo.ui.altair_chart produces an interactive Altair chart. Clicking and dragging selects a portion of the data and the returns the corresponding subset of the plotted dataframe (see the docs here). This is different from Altair's native .interactive() method, which instead lets you pan the view (dragging) and zoom (scrolling).

I'm more often interested in seeing the data (pan/zoom) than selecting some subset, I would prefer that to be the default controls attached to mouse interaction.

Suggested solution

  1. Make the default behavior configurable via code
  2. Add a set of controls to a marimo.ui.altair_chart similar to what plotly does
    image

Alternative

No response

Additional context

No response

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

Successfully merging a pull request may close this issue.

2 participants