RadialBarChart

Concentric tracks, one per row, each sweeping to its value. Point at a row and its track swells. Charts.

Open playground
3 goals
  • Move82%
  • Exercise64%
  • Stand91%

About

RadialBarChart is a React component in the Charts category of smoui. It is typed, ships no stylesheet, follows your theme through CSS variables, and honors prefers-reduced-motion. Import it with import { RadialBarChart } from "@ashutoshswamy/smoui" and set data, size.

Install

Terminal
npm i @ashutoshswamy/smoui

Usage

TSX
import { RadialBarChart } from "@ashutoshswamy/smoui";

<RadialBarChart data={[{ label: "Move", value: 82 }, { label: "Stand", value: 91 }]} />

Props 2

data

Outer ring first. `max` defaults to 100.

{ label; value; max? }[]
size

Px.

numberdefault 200