# C bar list 1

> Top pages — page views, last 30 days

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-bar-list-1).

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

## Install

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

## Files

### `registry/default/chart-variants/c-bar-list-1.tsx`

```tsx
"use client";

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

const pages = [
  { name: "/pricing", value: 48210 },
  { name: "/docs/install", value: 39870 },
  { name: "/blog/v2-launch", value: 31540 },
  { name: "/changelog", value: 22960 },
  { name: "/docs/theming", value: 18430 },
];

export default function TopPages() {
  return (
    <ChartCard
      className="max-w-md"
      description="Page views, last 30 days"
      title="Top pages"
    >
      <BarList aria-label="Top pages by views" data={pages} />
    </ChartCard>
  );
}
```
