suiss/ui · Chart
Area Chart Step
A single filled area drawn as steps, holding each value flat until the next reading.
Area Chart Step 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 single filled area drawn as steps that hold each value flat until the next reading. It suits values that change in discrete jumps, like prices, plan tiers or inventory counts.
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/area-chart-step.tsx:
- Update the import paths to match your project.
Usage
Replace chartData, point each dataKey at your fields and set the label and color in chartConfig. Switch the curve type to stepAfter or stepBefore if you want the jump on a different side of each point.
Notes
The plot supports keyboard navigation: focus it and use the arrow keys to move between months.

One series with type="step", which draws flat runs between readings instead of a slope. Use it for values that change at discrete moments, such as prices or plan limits. It has a month axis, a dashed grid and a tooltip.
Installation
The CLI also adds what it builds on: Card, Chart.
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 chartData with your records and change each dataKey to match your fields. Set the label and color in chartConfig. The component takes no props.
