Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Heatmap with Tooltip in React

Public visualization

Heatmap with Tooltip in React

0 stars0๐ŸŒ Public
LLewis Ward
Last edited Jul 27, 2021
Created on Jul 27, 2021

A heatmap displays a 10x10 matrix of values as colored squares, using a white-to-teal linear scale to represent the data range from 1 to 100. The visualization is rendered as an SVG chart using React components, D3.js scales (scaleBand, scaleLinear), and data loaded from a CSV file via d3.csv. Hovering over a square toggles its border and reveals the exact value in bold text, implemented through React's useState hook for interactive tooltips.

AI-generated description

React Starter code.

Comments

Sign in to join the discussion.

MIT Licensed