# Empty Data 2 - Empty chart

> Chart empty state explaining insufficient data for a graph.

A shadcn/ui block from the [@shadcnblocks](https://shadcnblocks.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/shadcnblocks/empty-empty-data-2).

- Page, with a live preview: https://shadcn.exchange/r/shadcnblocks/empty-empty-data-2
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/shadcnblocks/empty-empty-data-2-light-d9308bf6c85d1f84.png
- Registry item: https://shadcnblocks.com/r/empty-empty-data-2.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://shadcnblocks.com/r/empty-empty-data-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

- npm packages: `lucide-react`
- Registry items: `empty`

## Files

### `example/empty/empty-data-2.tsx`

```tsx
"use client";

import { BarChart3 } from "lucide-react";

import {
  Empty,
  EmptyDescription,
  EmptyHeader,
  EmptyMedia,
  EmptyTitle,
} from "@/components/ui/empty";

export const title = "Empty Chart";

const Example = () => (
  <Empty>
    <EmptyHeader>
      <EmptyMedia>
        <BarChart3 className="h-16 w-16 text-muted-foreground" />
      </EmptyMedia>
      <EmptyTitle>No data available</EmptyTitle>
      <EmptyDescription>
        There's no data to display in this chart yet. Data will appear here once
        it's available.
      </EmptyDescription>
    </EmptyHeader>
  </Empty>
);

export default Example;
```
