suiss/ui · Chart
Area Chart Linear
A single filled area whose points are joined by straight segments instead of a smoothed curve.
Area Chart Linear 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.
One series filled under straight line segments instead of a smoothed curve. Prefer it to the default when smoothing would suggest values between points that were never measured.
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-linear.tsx:
- Update the import paths to match your project.
Usage
Replace chartData, update each dataKey to your field names and rename the chartConfig entry to set the label and color. Everything else matches the default area chart.
Notes
Keyboard users can focus the plot and step through the months with the arrow keys.

The same one-series area as the default chart, with type="linear" so each month connects to the next with a straight segment. It has a month axis, a dashed grid and a tooltip with a line indicator.
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 of the series in chartConfig. The component takes no props.
