Imgcli

Charts & Stats

Unit Chart

A part-to-whole picture that fills itself in: waffle cells take their category's colour in reading order while the total counts up and the legend follows.

Make a video
Type
Animation
Duration
4.2s
Category
Charts & Stats
Source
Imgcli

Install

$ npx @imgcli/cli add unit-chart

A part-to-whole picture that fills itself in: waffle cells take their category's colour in reading order while the total counts up and the legend follows.

Installation

npx @imgcli/cli add unit-chart

Usage

import { UnitChart } from "@/components/imgcli/unit-chart";

<UnitChart />

Render at 30 fps for 126 frames (4.2 seconds) with the default props. The preview uses a 960 × 540 canvas.

Use <UnitChart title="Installs by category" series={[{ label: "Titles", value: 4820 }]} /> for 126 frames at 30 fps (UNIT_CHART_SECONDS). Categories default to steps of the accent.

PropTypeDefaultDescription
title
string"Installs by category"
series
readonly UnitChartSeries[][ { label: "Titles", value: 4820 }, { label: "Devices", value: 2610 }, { label: "Transitions", value: 1390 }, { label: "Charts", value: 780 }, ]
columns
number20Grid size; each cell is total ÷ (columns × rows).
rows
number10
unit
string""Formats the total and the legend values.
fontFamily
string—A face from the Imgcli font list, or any loaded CSS font stack.
accentColor
string—
theme
Partial<ImgcliTheme>—
mode
"light" | "dark"—
speed
number1

License

MIT. Free for personal and commercial use. Preserve the copyright and license notice.

Copyright (c) 2026 Ricky (Imgcli) <https://imgcli.com>

Frequently asked questions

How do I add Unit Chart to a Remotion project?

Run npx @imgcli/cli add unit-chart in your Remotion project. The CLI copies the editable source into components/imgcli/ under your source root and installs its dependencies.

What is Unit Chart?

Unit Chart is a Remotion waffle chart animation for React. A part-to-whole picture that fills itself in: waffle cells take their category's colour in reading order while the total counts up and the legend follows.

What do I need before using Unit Chart?

Use Node.js 20.19 or newer and an existing Remotion project. Create one with npx create-video@latest. The component is free and MIT licensed.