2 variants
Donut Chart
Part to whole and ratio against a limit. A donut with the total in the middle, and a half ring gauge.
Donut
Up to five slices with rounded ends and an even gap, the total in the middle, and a legend carrying every value and share. Hover swaps the center.
- Desktop18,42056%
- Mobile12,31037%
- Tablet2,1407%
| Slice | Value | Share |
|---|---|---|
| Desktop | 18,420 | 56% |
| Mobile | 12,310 | 37% |
| Tablet | 2,140 | 7% |
import { DonutChart } from "@/components/registry/donut-chart";
export function Devices() {
return (
<DonutChart
title="Traffic by device"
slices={[
{ label: "Desktop", value: 18420 },
{ label: "Mobile", value: 12310 },
]}
/>
);
}139 more lines ship with an easeUI Pro license.
Buy a licenseInstall
$ bunx --bun shadcn add @easeui-pro/donut-chart
Gauge
A half ring for one value against its limit, with optional status bands that are written out, never carried by color alone.
742Kof 1M requests
Past 70% of quota
import { GaugeChart } from "@/components/registry/gauge-chart";
export function Quota() {
return <GaugeChart label="Requests" value={742000} max={1000000} />;
}103 more lines ship with an easeUI Pro license.
Buy a licenseInstall
$ bunx --bun shadcn add @easeui-pro/gauge-chart