Repeat line charts

Source code Author

using Deneb

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

chart = Data(data) * Mark(:line) * Repeat(
    column = ["temp_max", "precipitation", "wind"]
) * Encoding(
    x="month(date)",
    y=(field=(;repeat=:column), aggregate=:mean),
    color=:location,
)

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