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 gallery example of adjustable bin sizes #3355

Open
joelostblom opened this issue Mar 12, 2024 · 1 comment
Open

Add gallery example of adjustable bin sizes #3355

joelostblom opened this issue Mar 12, 2024 · 1 comment

Comments

@joelostblom
Copy link
Contributor

I saw this cool example from @dwootton and think it could be cool to have in the altair example gallery (it's even cooler when the adjusting is bound to zooming the chart, but my understanding is that this is not possible in VL directly)

image

Open the Chart in the Vega Editor

@jonmmease
Copy link
Contributor

It is possible to control bin extents using selections, but I need to play with it to figure it out again.

I think you can do alt.Bin(maxbins=20, extent=interval_selection), where interval_selection is bound to the axes.

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

No branches or pull requests

2 participants