Skip to main content
100%

Saffir–Simpson Scale

✓ Published1🌍 Public
OOlha
Last edited Apr 19, 2022
Created on Apr 19, 2022
Forked from Heatmap with D3

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 description
MIT Licensed

Similar vizzes