Skip to main content
100%

Project Increment 2

✓ Published0🌍 Public
Aakshayamsgrad@gmail.com
Last edited Nov 4, 2025
Created on Nov 4, 2025
Forked from D3 Starter

This heatmap displays pairwise Pearson correlations among 18 numeric columns from the World Happiness Report 2021 dataset, using a diverging color scale from blue (negative) to red (positive) via `d3.scaleDiverging` and `d3.interpolateRdBu`. Each cell represents the correlation between two variables, with tooltips revealing exact r values. The code loads CSV data with `d3.csv`, computes correlations pairwise while ignoring missing values, and renders an SVG matrix with `d3.scaleBand` for axes and positioning.

AI-generated description
MIT Licensed

Similar vizzes