v0.1 public beta early access on GitHub
Home / Components / charts

ChartsiOS

Dependency-free charts: animated BarChart and a two-half-circle ProgressRing built from plain Views + Reanimated (no Skia/SVG)

$ npx lumioui add charts
import { BarChart, ProgressRing } from "@/components/ui/charts/charts";
Parts: BarChart · ProgressRing
Props13
BarChart
data BarDatum[]
height? number Chart height in px. Default 160.
color? string Bar color (hex). Defaults to theme primary (`bg-primary` class).
palette? string[] Per-bar hex palette, cycled by index. For theme chart colors prefer per-datum `barClassName` (`bg-chart-1..5`) — classes stay on the NativeWind path; hexes are for genuinely arbitrary fills.
showValues? boolean Show value above each bar. Default true.
className? string
ProgressRing
progress number 0–1 fill fraction.
size? number Outer diameter in px. Default 120.
thickness? number Ring thickness in px. Default 12.
color? string Fill color (hex). Defaults to theme primary.
trackColor? string Track color (hex). Defaults to theme muted.
children? React.ReactNode Center content (e.g. a percentage Text).
className? string
Charts — Barbar.tsx
charts/variants/bar.tsx open

Dependency-free charts: animated BarChart and a two-half-circle ProgressRing built from plain Views + Reanimated (no Skia/SVG)

Charts — Ringring.tsx
charts/variants/ring.tsx open

Dependency-free charts: animated BarChart and a two-half-circle ProgressRing built from plain Views + Reanimated (no Skia/SVG)