🌍 Public
Viewing a saved revision (read-only)
56d7d48954f24cefbf06aeb5ca8b93c1
Project Increment 2
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