Table bubble plot

Source code Author

Punchcard Visualization like on Github. The day on y-axis uses a custom order from Monday to Sunday. The sort property supports both full day names (e.g., 'Monday') and their three letter initials (e.g., 'mon') – both of which are case insensitive.

using Deneb
data = Data(url="https://vega.github.io/vega-datasets/data/github.csv")
chart = Data(data) * Mark(:circle) * Encoding(
    x="hours(time):O",
    y=field(
        "day(time):O",
        sort=[:mon, :tue, :wed, :thu, :fri, :sat, :sun]
    ),
    size="sum(count):Q"
)

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