Skip to main content
100%

heat map

✓ Published0🌍 Public
Nnitishsurneni@gmail.com
Last edited Apr 6, 2025
Created on Apr 6, 2025
Forked from Fork of pie chart

This heat map visualizes the correlation between GDP and wealth for ten countries, using color intensity to represent the absolute difference between each country’s GDP and wealth values. The visualization arranges countries along the x-axis and two categories, GDP and Wealth, along the y-axis, with each cell colored using a sequential interpolateCool scale. Built with D3.js v7, the code flattens the source data into category-specific rows, then renders SVG rectangles positioned by d3.scaleBand for both axes. The result provides a quick comparative view of economic output versus per-capita wealth across the included nations.

AI-generated description
MIT Licensed

Similar vizzes