2d histogram heatmap

Source code Author

using Deneb
data = Data(url="https://vega.github.io/vega-datasets/data/movies.json")
chart = Data(data) * Mark(:rect) * Encoding(
    x=field("IMDB Rating", bin=(;maxbins=40)),
    y=field("Rotten Tomatoes Rating", bin=(;maxbins=40)),
    color="count()"
)

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