Saffir–Simpson Scale
✓ Published1🌍 Public
This example visualizes the Saffir–Simpson hurricane scale as a heatmap, presenting intensity categories with color-coded rows based on data from a linked CSV file. The code uses D3 v7 to load the dataset with `d3.csv`, derive column keys from the data, and build an HTML table via `d3.select` and `append`. Each row’s background color is assigned through a `d3.scaleOrdinal` with a custom palette, while cells display the corresponding values. The table structure is generated dynamically, with styling applied directly through D3’s style methods.
AI-generated descriptionFinal Project 1.1
Heatmap
inspired by https://www.d3-graph-gallery.com/graph/heatmap_basic.html and by documentation https://github.com/d3/d3/blob/main/API.md
MIT Licensed