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

All properties in altair.Chart.configure_axisRight are Undefined #1795

Closed
domoritz opened this issue Nov 18, 2019 · 3 comments
Closed

All properties in altair.Chart.configure_axisRight are Undefined #1795

domoritz opened this issue Nov 18, 2019 · 3 comments

Comments

@domoritz
Copy link
Member

In the docs at https://altair-viz.github.io/user_guide/generated/toplevel/altair.Chart.html?highlight=error%20bars#altair.Chart.configure_axisRight, all properties are defaulting to undefined.

Screen Shot 2019-11-18 at 15 48 15

@jakevdp
Copy link
Collaborator

jakevdp commented Nov 18, 2019

Every property of every function in Altair defaults to Undefined. In Python, the default is normally None, but None translates to null in JSON, which has special meaning in Vega-Lite. So we created a new sentinel called "Undefined" to denote parameters that are not defined.

A bit confusing? Yes, but it seemed like the best way forward.

@jakevdp jakevdp closed this as completed Nov 18, 2019
@jakevdp
Copy link
Collaborator

jakevdp commented Nov 19, 2019

(an alternative would have been for every function signature to just be **kwargs, but then the parameters would not be explicitly listed in the call signature and would not tab complete)

@domoritz
Copy link
Member Author

Thanks for the explanation.

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