Skip to main content
100%

Heatmap with D3 Overlay

✓ Published1🌍 Public
LLewis Ward
Last edited Aug 11, 2021
Created on Jul 26, 2021

This example displays a heatmap of 100 data points across 10 variables and 10 groups, with each cell colored on a teal-to-green gradient using d3.scaleLinear. A large white "D3" text overlay is positioned at the center of the SVG canvas, creating a visual watermark effect. The React component loads CSV data via d3.csv and renders the chart using d3.scaleBand for axes and SVG rect elements. The overlay text is drawn directly within the same SVG group, demonstrating how to combine data-driven visualizations with static annotations in a React-D3 workflow.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes