For the complete documentation index, see llms.txt. Markdown variants are available by appending .md to any URL or sending an Accept: text/markdown header. An agent skill is available at /.well-known/agent-skills/site-skill.md.
0
Sponsor

Chart

Beautiful charts built using Recharts.

"use client";

import { Bar, BarChart, CartesianGrid, XAxis } from "recharts";

import {
  ChartContainer,

Installation

$ pnpm dlx shadcn@latest add https://shadcn-cssinjs.vercel.app/r/chart.json

Usage

import {
  ChartContainer,
  ChartTooltip,
  ChartTooltipContent,
  type ChartConfig,
} from "@/components/ui/chart/chart";
<ChartContainer config={chartConfig}>
  <BarChart data={chartData}>
    <Bar dataKey="desktop" fill="var(--color-desktop)" />
  </BarChart>
</ChartContainer>

RTL

To enable right-to-left support, see the RTL guide.

"use client";

import { Bar, BarChart, CartesianGrid, XAxis } from "recharts";

import { useTranslation } from "@/components/language-selector";
import type { Translations } from "@/components/language-selector";

API Reference

The charts are built using Recharts. See the Recharts documentation for the full API reference.