Skip to main content

Charts on brand
with visx primitives.


Dashboards that look like the product.

Charts should not feel bolted on. ViraUI charts paint stroke, fill, and chrome from the same theme tokens as the rest of the UI — so plots follow light and dark, and the dashboard reads as one product.

It sits beside @viraui/react as a peer, not a second design system. Compose with the visx primitives you already know; keep theme and setup shared so agents and humans ship analytics that still look like ViraUI.


Your series.
Your tokens.

Override stroke and fill with theme ramps — brand colors, multi-series, highlight moments. Defaults stay on-token so agents and humans share one paint language.

Your dashboard inherits the brand for free — emphasize a series when the story needs it, and every plot still looks like the product.

Series paint · token overrides

One kit.
Every family.

Line, area, bar, pie, radar — compose the family you need from the same package. Parts stay token-styled so custom blocks still look like the product.

Dashboards stay inside the system. Docs own the deep recipes.

Compose · simplified resting heart rate
1
import {
2
AxisBottom, AxisRight, Circle,
3
GridColumns, GridRows, Group,
4
LinePath, ParentSize, curveMonotoneX,
5
scaleLinear, scalePoint,
6
} from '@viraui/charts';
7
function RestingHeartRate({ data }) {
8
const x = scalePoint({ domain: keys, range });
9
const y = scaleLinear({ domain: [55, 105] });
10
return (
11
<Stack fullWidth fullHeight rowGap="l" expandChildren>
12
<Metric label="Average" value={82} unit="BPM" />
13
<ParentSize>
14
{({ width, height }) => (
15
<svg width={width} height={height}>
16
<GridRows scale={y} />
17
<GridColumns scale={x} />
18
<LinePath data={data} curve={curveMonotoneX} />
19
{data.map((d) => <Circle key={d.key} />)}
20
<AxisBottom scale={x} />
21
<AxisRight scale={y} />
22
</svg>
23
)}
24
</ParentSize>
25
</Stack>
26
);
27
}
Average
82BPM
Last 30 sessions

Plot on brand.
Ship the dashboard.