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

Width 'step' does not work #11

Closed
Juan-132 opened this issue Feb 24, 2020 · 2 comments
Closed

Width 'step' does not work #11

Juan-132 opened this issue Feb 24, 2020 · 2 comments

Comments

@Juan-132
Copy link

Great tutorial, very clear and helpful. Thanks!

https://github.com/uwdata/visualization-curriculum/blob/master/altair_marks_encoding.ipynb

This code is used a number of times, but does not seem to be valid.

.properties(
    width={"step": 50} # adjust the step parameter
)

A numerical value does work: e.g. width=100
I could not find from the documentation how to apply the step

@jheer
Copy link
Member

jheer commented Feb 24, 2020

Hi! Which version of Altair are you using? The step syntax was introduced with 4.0. If you are using an earlier version of Altair (3.x), you can use earlier versions of the notebooks, as described in the README: https://github.com/uwdata/visualization-curriculum#local-installation

@Juan-132
Copy link
Author

Thanks. I was indeed still using v3.2 (which is the latest offered on conda main).
Now installed v4.01 via conda-forge; and it works perfectly

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