heat map
✓ Published0🌍 Public
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 descriptionMIT Licensed