---
title: "Latency"
description: "Latency percentile monitor with an HTML stat row, on the ECharts area chart"
plan: Pro
docs: https://ui.edbn.me/docs/charts/latency-echarts-area-chart
---

# Latency

Latency percentile monitor with an HTML stat row, on the ECharts area chart

A latency monitor with P50, P75, P95 and P99 as gradient areas on the area chart. The stat row above is four HTML buttons with each percentile’s latest value; pressing one selects that series through the chart’s controlled selectedDataKey, and clicking an area updates the same state.

Hovering dims the other series, the x axis is labelled Time (UTC) with “Today” trimmed from each tick, and the stat row folds to two columns on phones.

## 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/latency-echarts-area-chart
```

## Dependencies
- npm: echarts@6.1.0, motion@^12.23.25
- edbn: echarts-area-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/latency-echarts-area-chart.tsx (113 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
