NeoTerm UI

HeatMap

Grid-based heatmap visualization with positive/negative color mapping.

Import

import { HeatMap } from "neoterm-ui";

Usage

<HeatMap
  data={[[1, 3, -2], [0, 5, -1], [2, -3, 4]]}
  rowLabels={["Mon", "Tue", "Wed"]}
  colLabels={["09:00", "12:00", "18:00"]}
/>

Props

PropTypeDefaultDescription
datanumber[][]2D grid of values.
rowLabelsstring[]Labels for rows.
colLabelsstring[]Labels for columns.
colorPositivestring"#39ff14"Color for positive values.
colorNegativestring"#ff3535"Color for negative values.