suiss/ui · Chart
Line Chart Default
A single smooth line through six months of values, without point markers.
Line 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 starting line chart: one smooth series without point markers, a month axis and a tooltip. Use it to show a trend over time when the overall shape matters more than individual readings.
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/line-chart-default.tsx:
- Update the import paths to match your project.
Usage
Replace chartData, point each dataKey at your fields and rename the chartConfig entry to set the label and color. Switch the type on the line to change the curve, or set dot to show markers.
Notes
Focus the chart and use the arrow keys to step the tooltip through the points.

The baseline line chart inside a Card: one series drawn as a natural curve with a month axis, a dashed horizontal grid and a tooltip. There is no value axis.
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, and change the curve with the type prop on Line. The component takes no props.
