suiss/ui · Chart
Area Chart Default
A single filled area with a smooth curve showing one series across six months.
Area 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.
The baseline area chart: one series as a smooth, lightly filled curve with a month axis and a tooltip, and no value axis. Start here when you only need the shape of a trend and want to build up from the simplest version.
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-default.tsx:
- Update the import paths to match your project.
Usage
Replace chartData with your records and change each dataKey to match your field names. Rename the series entry in chartConfig and pick its label and color there. Change the curve shape with the type prop on the area, for example to straight lines or steps.
Notes
Focus the plot and use the arrow keys to move the tooltip between months. Colors come from chartConfig, so they follow light and dark mode without extra work.

The baseline area chart inside a Card: one series drawn as a natural curve with a light fill, a dashed horizontal grid, a month axis and a tooltip with a line indicator. There is no value axis. Press and drag across the plot to move the tooltip between months.
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. Rename the series in chartConfig to set its label and color. The component takes no props.
