saturation/uisaturation/ui
DocsComponentsBlocksPagesEmails
GitHub

Sections

IntroductionComponentsInstallationMCPThemingDesign

Components

Components

General

AvatarBadgeButtonKbdProgressSeparatorSkeletonSpin ResolveSpinnerSync ButtonTypography

Forms & Inputs

Address LookupCalendar PickerCheckboxComboboxDate PickerEmoji PickerFavicon SearchFieldInputInput GroupInput OTPRadio GroupSelectSliderSwitchTextareaToggleToggle Group

Data Display

AccordionAlertCardChartComparison SliderCredit CardData TableEmptyItemSaturation Credit CardTableTree

Navigation

BreadcrumbCommandMenubarNavigation MenuPaginationTabs

Overlays

CollapsibleContext MenuDialogDropdown MenuSheet

Layout

Button GroupFont ProviderWizard Split Layout

Feedback

Sonner

Animation & Effects

Animated GroupAnimated ListAnimated NumberBeamBlur FadeBorder TrailGlow EffectLiquid MetalLoading StateParallaxPixelProgressive BlurRippleSpotlightText EffectText Shimmer

Productivity

Agent ChatAI Chat InputCoding AgentFiltersFull CalendarKanbanNovel Editor
Docs/Components/Chart

Chart

Chart components powered by Recharts.

Loading...

Installation

pnpm dlx shadcn@latest add @saturation-ui/chart

Tailwind v4 — Source Scanning

The public shadcn registry installs component source into your project. If Tailwind v4 isn't scanning your components directory, add this to your CSS entry file:

@source "../components";

This ensures all utility classes in CVA variants and data attribute selectors are included in your build.

Usage

import {
  ChartContainer,
  ChartTooltip,
  ChartTooltipContent,
} from "@/components/ui/chart"
<ChartContainer config={chartConfig}>
  <BarChart data={data}>
    <Bar dataKey="value" />
    <ChartTooltip content={<ChartTooltipContent />} />
  </BarChart>
</ChartContainer>

Examples

Area Gradient

Loading...
Area chart with gradient fill.

Bar Multiple

Loading...
Multiple series bar chart.

Bar Interactive

Loading...
Interactive bar with tabs.

Pie Donut

Loading...
Donut chart with center text.

Radial

Loading...
Radial stacked chart.

API Reference

PropTypeDefaultDescription
config*ChartConfig—Chart configuration object.
PreviousCardNextCheckbox

On This Page

  • Installation
  • Usage
  • Examples
  • Area Gradient
  • Bar Multiple
  • Bar Interactive
  • Pie Donut
  • Radial
  • API Reference
Area Chart - Interactive
Showing total visitors for the selected period
Revenue vs Expenses
Monthly financial overview with gradient fill
Desktop vs Mobile
Visitor count by platform over the last 6 months
Page Analytics
Daily views and clicks for the last 12 days
Department Budget
Budget allocation across production departments
Camera
Electric
Grip
Sound
Art
Budget Utilization
Percentage of budget spent by department