suiss/ui · Chart
Radial Chart Default
Concentric radial bars, one per device, each running around a gray background track.
Radial Chart Default is an open-source chart from suiss/ui for React, React Native, SwiftUI and Jetpack Compose. The @esuiss/ui CLI copies its source into your project, so you own the code.
Concentric radial bars, one per category, each running along a gray background track. Use it as a compact, circular alternative to a bar chart for a few categories.
Installation
CLI
Works in any project with a components.json. See Installation for the one-line registry setup. Or use the suiss/ui CLI:
Manual
- Install the dependencies:
-
Copy the source into
components/charts/radial-chart-default.tsx:
- Update the import paths to match your project.
Usage
Give each record a category key, a value and a fill that points at its color, and add each key to chartConfig. Adjust barSize for ring thickness and innerRadius to open up the center.
Notes
Arc lengths are relative to the largest value, which always closes a full circle; add a PolarAngleAxis with a fixed domain if bars should be measured against a known maximum. The first record sits on the innermost ring, where the same value looks shorter than on outer rings.

A RadialBarChart with one bar per record in chartData (a device and a users count). Each bar is colored through a Cell that reads chartConfig, over a track in the secondary color. Pressing a bar shows a tooltip.
Installation
The CLI also adds what it builds on: Card, Chart.
Manual
-
Target iOS 17 or later.
-
Add the Swift package to your app:
- Copy the theme files every view uses:
- Copy the source and every file it uses:
- Add the files to your app target.
- Set
minSdkto 24 or higher and add the dependencies:
- Copy the theme files every view uses:
- Copy the source and every file it uses:
- Update the
com.esuiss.uipackage names to match your project.
Usage
Replace chartData with your records and add a matching entry per item to chartConfig, whose colors the Cell children read. The component takes no props.
