---
title: "Grid"
description: "Bar chart whose columns are stacks of blocks, on the ECharts blocks variant"
plan: Pro
docs: https://ui.edbn.me/docs/charts/grid-echarts-bar-chart
---

# Grid

Bar chart whose columns are stacks of blocks, on the ECharts blocks variant

Hourly sessions on the bar chart’s blocks variant: each of the 24 columns is a stack of 8px blocks with 4px gaps, and the unused height above shows as dim blocks, so the plot reads as a grid.

The monospaced header works out the day’s total and its peak hour from the data. The x axis drops its tick dots, and the tooltip gives each hour’s count.

## Installation

This is a Pro item. Once per project, create a token at https://ui.edbn.me/dashboard/tokens, put it in `.env.local` as `EDBN_TOKEN`, and add the registry to `components.json`:

```json
{
  "registries": {
    "@edbn": {
      "url": "https://ui.edbn.me/r/{name}.json",
      "headers": { "Authorization": "Bearer ${EDBN_TOKEN}" }
    }
  }
}
```

Then install:

```bash
npx shadcn@4.19.0 add @edbn/grid-echarts-bar-chart
```

## Dependencies
- npm: echarts@6.1.0, motion@^12.23.25
- edbn: echarts-bar-chart

## Usage

The example code is part of Pro (https://ui.edbn.me/pricing). With the user's token, the edbn MCP server's `get_example` tool returns it: https://ui.edbn.me/mcp

## Files
- components/charts/grid-echarts-bar-chart.tsx (95 lines)

## For agents
- Base theme, once per project: npx shadcn@4.19.0 add https://ui.edbn.me/r/edbn-base.json
- MCP server with search, items, examples and source: https://ui.edbn.me/mcp
- Every page and item: https://ui.edbn.me/llms.txt
