# C funnel chart 2

> Checkout — left-aligned bars

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-funnel-chart-2).

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

## Install

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

## Files

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

```tsx
"use client";

import { ChartCard } from "@/registry/default/charts/chart-card";
import { FunnelChart } from "@/registry/default/charts/funnel-chart";

const data = [
  { sessions: 52400, step: "Viewed product" },
  { sessions: 14800, step: "Added to cart" },
  { sessions: 8350, step: "Started checkout" },
  { sessions: 6120, step: "Entered payment" },
  { sessions: 5480, step: "Purchased" },
];

export default function CheckoutFunnel() {
  return (
    <ChartCard
      className="max-w-xl"
      description="Store sessions, last 30 days. Bars aligned left for easier comparison."
      footer="The biggest drop is between viewing a product and adding it to the cart."
      title="Checkout"
    >
      <FunnelChart
        align="start"
        category="sessions"
        color="var(--chart-2)"
        data={data}
        index="step"
      />
    </ChartCard>
  );
}
```
