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

Ranged dot plot documentation mismatch (between Altair and vega-lite) #2839

Closed
johanneswerner opened this issue Jan 17, 2023 · 3 comments
Closed
Labels

Comments

@johanneswerner
Copy link

The documentation for the ranged dot plot for Altair and Vega-lite shows different outcomes.

I believe that the plot for Altair is incorrect (as the dots are missing).

Altair

image

Vega-Lite

image

Probably not the correct place to ask this question, but how can I produce the lower plot with Altair?

@debbes80
Copy link

The problem in the Altair example is that the point chart domain is a list of strings while it should be ints. So using domain=[1955, 2000], instead, gives the correct plot

@joelostblom
Copy link
Contributor

This has been updated in the development version of the Altair docs, which will go live once the next release is out. You can find a preview here in the meanwhile https://joelostblom.github.io/altair-docs/gallery/ranged_dot_plot.html

@joelostblom
Copy link
Contributor

@debbes80 There is now a release candidate of Altair 5, which supports Vega-Lite 5! Details and info on how to install can be found in #2937. The docs have also been updated for this example https://altair-viz.github.io/gallery/ranged_dot_plot.html

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

No branches or pull requests

3 participants