Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Heatmap with Tooltip in React

Public visualization

Viewing a saved revision (read-only)

b2a62650cecc4034a70471d1ac8225e6

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.