Histogram

< Github punch card visualization | Example Gallery | Line Chart >

from altair import *

Chart('https://vega.github.io/vega-lite/data/movies.json').mark_bar().encode(
    x=X('IMDB_Rating:Q',
        bin=Bin(
            maxbins=10.0,
        ),
    ),
    y='count(*):Q',
)