Normalized bar chart
using Deneb
data = Data(url="https://vega.github.io/vega-datasets/data/barley.json")
chart = data * Mark(:bar) * Encoding(
x=field("sum(yield)", stack=:normalize),
y=:variety,
color=:site,
)
This page was generated using DemoCards.jl and Literate.jl.