Skip to main content
100%

Fork of Old Faithful HeatMap

✓ Published0🌍 Public
AAnoukvdh
Last edited May 11, 2021
Created on May 3, 2021

This interactive visualization presents the Old Faithful dataset as a 2D heatmap, showing the relationship between eruption durations and waiting times. The plot uses a binned rectangular mark, with color intensity representing the count of observations in each bin, rendered using Vega-Lite’s `bin` encoding and `aggregate: "count"`. The code employs a minimal setup with D3.js to fetch the TSV data and re-renders the visualization on every mouse movement, dynamically adjusting the bin count via `Math.round(bins)`. Consequently, the heatmap’s granularity responds directly to the horizontal cursor position, letting viewers explore different binning resolutions. The visualization relies on vega-embed to render the specification as a static SVG.

AI-generated description

A visualization of the Old Faithful Dataset as a 2D HeatMap visualization using Vega-Lite.

Draws from Vega-Lite Example: Table Binned heatmap.

MIT Licensed

Similar vizzes