Layered area chart

Source code Author

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

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