# C spark bar 3

> Weekly volume — stacked web and app orders in a card

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-spark-bar-3).

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

## Install

```bash
npx shadcn@latest add https://shadcn.exchange/r/cnippet/c-spark-bar-3.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/spark-bar`, `@cnippet/chart-card`

## Files

### `registry/default/chart-variants/c-spark-bar-3.tsx`

```tsx
"use client";

import { ChartCard } from "@/registry/default/charts/chart-card";
import { SparkBar } from "@/registry/default/charts/spark-bar";

// Weekly orders by channel, last 12 weeks.
const data = [
  { app: 410, web: 820, week: 1 },
  { app: 455, web: 870, week: 2 },
  { app: 498, web: 905, week: 3 },
  { app: 521, web: 940, week: 4 },
  { app: 566, web: 980, week: 5 },
  { app: 602, web: 1015, week: 6 },
  { app: 640, web: 990, week: 7 },
  { app: 688, web: 1042, week: 8 },
  { app: 712, web: 1070, week: 9 },
  { app: 761, web: 1098, week: 10 },
  { app: 805, web: 1121, week: 11 },
  { app: 849, web: 1150, week: 12 },
];

export default function WeeklyVolume() {
  return (
    <ChartCard
      className="max-w-xs"
      delta={0.047}
      description="Weekly orders, web and app stacked"
      title="Orders"
      value="1,999"
    >
      <SparkBar
        categories={["web", "app"]}
        className="h-16 w-full"
        data={data}
        index="week"
        type="stacked"
      />
    </ChartCard>
  );
}
```
