DS0
Components

HeatMap

A grid-based heat visualization that maps values to color intensity.

Overview

HeatMap renders a grid of cells where color intensity represents data magnitude. Supports custom color scales, tooltips, and axis labels.

Usage

<HeatMap
  data={contributions}
  xLabels={months}
  yLabels={days}
  colorScale={['#eee', '#9be9a8', '#40c463', '#30a14e', '#216e39']}
/>

API Reference

PropTypeDefaultDescription
datanumber[][][]Grid data values
xLabelsstring[]X-axis labels
yLabelsstring[]Y-axis labels
colorScalestring[]Default scaleColor gradient steps
cellSizenumber14Cell size in pixels
ComponentWhen to Use Instead
ChartBar, line, and area charts
SparklineInline trend indicator

On this page