# C chart skeleton 2

> Line and area placeholders — side by side in chart cards

A shadcn/ui block from the [@cnippet](https://ui.cnippet.dev/?utm_source=shadcn.exchange) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/cnippet/c-chart-skeleton-2).

- Page, with a live preview: https://shadcn.exchange/r/cnippet/c-chart-skeleton-2
- Screenshot: https://shadcn.exchange/shot/cnippet/c-chart-skeleton-2/light.png
- Registry item: https://ui.cnippet.dev/r/c-chart-skeleton-2.json
- Categories: chart skeleton
- Listed: 2026-10-27, source last changed 2026-10-27

## Install

```bash
npx shadcn@latest add https://shadcn.exchange/r/cnippet/c-chart-skeleton-2.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `@cnippet/chart-skeleton`, `@cnippet/chart-card`

## Files

### `registry/default/chart-variants/c-chart-skeleton-2.tsx`

```tsx
"use client";

import { ChartCard } from "@/registry/default/charts/chart-card";
import { ChartSkeleton } from "@/registry/default/charts/chart-skeleton";

export default function LineAndAreaLoading() {
  return (
    <div className="grid w-full gap-4 md:grid-cols-2">
      <ChartCard description="p95, last 24 hours" title="API latency">
        <ChartSkeleton className="aspect-auto h-40" variant="line" />
      </ChartCard>
      <ChartCard description="Last 30 days" title="Active users">
        <ChartSkeleton className="aspect-auto h-40" variant="area" />
      </ChartCard>
    </div>
  );
}
```
