suiss/uim · Chart

Area Chart Default

A single filled area with a smooth curve showing desktop visitors over six months.

Area Chart Default is an open-source mobile chart from suiss/uim, drawn with react-native-svg for React Native and Expo, with SwiftUI and Jetpack Compose versions built from the same design tokens. The @esuiss/uim CLI copies its source into your project, so you own the code.

iOS
Area on iOS in light mode

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

$ pnpm dlx @esuiss/uim@latest add area-chart-default

The CLI also adds what it builds on: Card, Chart.

Manual

  1. Add the pieces it builds on: Card, Chart.

  2. Copy the source into components/charts/area-chart-default.tsx:

uniwind/components/charts/area-chart-default.tsx
import {
  Card,
  CardContent,
  CardDescription,
  CardHeader,
  CardTitle,
} from "@/components/ui/card"
import {
  Area,
  AreaChart,
  CartesianGrid,
  type ChartConfig,
  ChartContainer,
  ChartTooltip,
  ChartTooltipContent,
  XAxis,
  1. Update the import paths to match your project.

Usage

import { AreaChartDefault } from "@/components/charts/area-chart-default"
<AreaChartDefault />

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.