Normalized area chart

Source code Author

using Deneb
data = Data(url="https://vega.github.io/vega-datasets/data/iowa-electricity.csv")
chart = data * Mark(:area) * Encoding(
    "year:t",
    y=field("net_generation:q", stack="normalize", axis=(;format="%")),
    color="source:n"
)

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