Horizontal stacked bar chart

Source code Author

using Deneb

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

chart = data * Mark(:bar) * Encoding(
    "sum(yield)",
    :variety,
    color=:site,
)

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