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

Altair Sample Charts in Documentation Not Show #2341

Closed
ihightower opened this issue Nov 19, 2020 · 1 comment
Closed

Altair Sample Charts in Documentation Not Show #2341

ihightower opened this issue Nov 19, 2020 · 1 comment

Comments

@ihightower
Copy link

ihightower commented Nov 19, 2020

Many of the Altair sample charts in documents do not show.. e.g. in this URL: https://altair-viz.github.io/user_guide/compound_charts.html

Order of Layers, HConcat, Repeated and Faceted Charts.. do not show the actual chart. It has been like this several weeks (or months).

I found out that.. it was dataset issue.

example the below works, (but the one shown in sample not work.. see the changes required to make it work in the code comment.

Please fix all chart samples.. as this causes problems for beginners like us to use the documentation to our benefit.

import altair as alt
from vega_datasets import data

source = data.movies() # This is the change required together with Column Names were wrong.. need space instead of underscore.

heatmap = alt.Chart(source).mark_rect().encode(
    alt.X('IMDB Rating:Q', bin=True),
    alt.Y('Rotten Tomatoes Rating:Q', bin=True),
    alt.Color('count()', scale=alt.Scale(scheme='greenblue'))
)

points = alt.Chart(source).mark_circle(
    color='black',
    size=5,
).encode(
    x='IMDB Rating:Q',
    y='Rotten Tomatoes Rating:Q',
)

heatmap + points
@jakevdp
Copy link
Collaborator

jakevdp commented Nov 19, 2020

Reported in #2213

@jakevdp jakevdp closed this as completed Nov 19, 2020
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