suiss/ui · Chart
Radial Chart Stacked
A half-circle arc with two series stacked end to end and the combined total beneath it.
Radial Chart Stacked 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.
A half-circle arc where two series sit end to end and the combined total appears beneath. Use it to show a split of one total, like desktop versus mobile visitors, in a compact space.
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-stacked.tsx:
- Update the import paths to match your project.
Usage
Set your series values in visitors, add a matching entry with label and color for each key in chartConfig, and add one RadialBar per series with the same stackId. The arc's scale is set to the total, so the bars always fill it completely.
Notes
The tooltip shows both values at once regardless of which segment you hover.

A RadialBarChart drawn from 180 to 0 degrees, with two RadialBar series sharing a stackId on a domain equal to their sum. chartData is a single record with desktop and mobile counts, and the total is Text under the arc. Pressing the arc shows a tooltip.
Installation
The CLI also adds what it builds on: Card, Chart, Text.
Manual
-
Target iOS 17 or later.
-
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 the counts in visitors; the total and domain follow. Rename the series in chartConfig and in the RadialBar dataKey and fill props. The component takes no props.
