Connected scatter plot

Source code Author

using Deneb

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

chart = data * Mark(:line, point=true) * Encoding(
    x=field("miles:Q", scale=(;zero=false)),
    y=field("gas:Q", scale=(;zero=false)),
    order=:year
)

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