Aggregate bar chart

Source code Author

using Deneb

data = Data(url="https://vega.github.io/vega-datasets/data/population.json")

chart = data * Mark(:bar) * transform_filter(
    "datum.year == 2000"
)* Encoding(
    x=field("sum(people)", title=:population),
    y="age",
) * vlspec(height=(;step=18))

This page was generated using DemoCards.jl and Literate.jl.