# C combo chart 3

> Trials & conversion — stacked bars by plan with a conversion line

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-combo-chart-3).

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

## Install

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

## Files

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

```tsx
"use client";

import { ChartCard } from "@/registry/default/charts/chart-card";
import { ComboChart } from "@/registry/default/charts/combo-chart";
import { formatPercent } from "@/registry/default/lib/chart-utils";

// New trials by plan (stacked) with the share that converted to paid.
const data = [
  { conversion: 0.18, month: "Mar", pro: 410, starter: 820, team: 140 },
  { conversion: 0.19, month: "Apr", pro: 455, starter: 870, team: 162 },
  { conversion: 0.21, month: "May", pro: 498, starter: 905, team: 181 },
  { conversion: 0.2, month: "Jun", pro: 521, starter: 940, team: 176 },
  { conversion: 0.23, month: "Jul", pro: 566, starter: 980, team: 204 },
  { conversion: 0.24, month: "Aug", pro: 602, starter: 1015, team: 229 },
];

export default function TrialsAndConversion() {
  return (
    <ChartCard
      className="max-w-2xl"
      description="New trials by plan, with the share that converted to paid"
      title="Trials & conversion"
    >
      <ComboChart
        barCategories={["starter", "pro", "team"]}
        className="h-48"
        config={{ conversion: { color: "var(--chart-5)" } }}
        data={data}
        dualAxis
        index="month"
        lineCategories={["conversion"]}
        lineValueFormatter={(value) => formatPercent(value, { digits: 0 })}
        stacked
      />
    </ChartCard>
  );
}
```
