Skip to main content
100%

Example of Heatmap using D3 with React

✓ Published4🌍 Public
LLewis Ward
Last edited Jul 27, 2021
Created on Jul 26, 2021
Forked from React Starter

This heatmap displays a 10-by-10 grid of values using a white-to-teal linear color scale (`d3.scaleLinear`) mapped from a CSV dataset loaded via `d3.csv`. The graphic uses React to render SVG rectangles for each cell, with `d3.scaleBand` positioning the rows and columns. Axis labels for groups (A–J) and variables (v1–v10) are drawn as SVG text elements. The full window is filled with the visualization, and the chart includes a title above the plot area.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes