suiss/uim · Chart

Area Chart Axes

A single area with a gradient fill, dots on each point and a value axis on the right.

Area Chart Axes 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 (axes) on iOS in light mode

One series drawn as a monotone curve with a fill that fades from top to bottom, a dot on every month, a month axis below and a four-tick value axis on the right. The tooltip follows your finger across the plot.

Installation

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

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-axes.tsx:

uniwind/components/charts/area-chart-axes.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 { AreaChartAxes } from "@/components/charts/area-chart-axes"
<AreaChartAxes />

Replace chartData with your records and change each dataKey to match your fields. Set the label and color in chartConfig, and adjust tickCount on the YAxis to change how many values it shows. The component takes no props.