For the complete documentation index, see llms.txt. Markdown variants are available by appending .md to any URL or sending an Accept: text/markdown header. An agent skill is available at /.well-known/agent-skills/site-skill.md.
0
Sponsor

Heatmap

Animated uniform grids for matrices, spectrograms, and capacity maps.

ChartGPUPixiJS
ChartGPU renderer

Installation

$ pnpm dlx shadcn@latest add @chartcn/chartgpu/heatmap

Usage

import { ChartcnHeatmap } from "@/components/chart/heatmap";
<ChartcnHeatmap config={{}} data={data}>
  <ChartcnHeatmap.XAxis />
  <ChartcnHeatmap.YAxis />
  <ChartcnHeatmap.Legend />
  <ChartcnHeatmap.Tooltip />
  <ChartcnHeatmap.Heatmap colormap="viridis" />
</ChartcnHeatmap>

Examples

Cell gaps and colormaps

Inferno cells

API Reference

PropTypeDefault
dataHeatmapData-
configChartConfig-
animationboolean | AnimationConfig{ duration: 650, easing: "cubicOut" }
isLoadingbooleanfalse

Heatmap

PropTypeDefault
colormap"viridis" | "plasma" | "inferno" | "magma" | "grayscale" | string[]"viridis"
cellGapPxnumber0
opacitynumber1
zScale"linear" | "log""linear"
nullHandling"transparent" | "lowest" | "highest""transparent"