๐ Lobe Charts - React modern charts components built on recharts
Overview
Charts for Dashboards and Model Leaderboards Beautiful React charts for dashboards and AI benchmarks, themed with Lobe UI. Documents ยท Changelog ยท Report Bug ยท Request Feature ![][npm-release-link] ![][vercel-link] ![][discord-link] ![][npm-downloads-link] ![][github-releasedate-link] ![][github-action-test-link] ![][github-action-release-link] ![][github-contributors-link] ![][github-forks-link] ![][github-stars-link] ![][github-issues-link] ![][github-license-link] Lobe Charts (@lobehub/charts) is a React chart library for dashboards and AI products, built on recharts and designed to fit Lobe UI apps.
README
๐ก Why Lobe Charts?
Lobe Charts (@lobehub/charts) is a React chart library for dashboards and AI products, built on recharts and designed to fit Lobe UI apps.
- Everything a dashboard needs - business charts, sparklines, heatmaps and status trackers in one package
- Made for AI products - ready-made charts for model benchmarks and leaderboards, with your own brand icons
- Fits your Lobe UI app - charts follow the Lobe UI theme, so they look consistent without extra styling
- Simple, data-first props - pass an array of objects and choose which keys to plot
- Fully typed - TypeScript types for every component
- Agent-ready - coding agents can learn the library from
skills.mdandllms.txt
๐ Getting Started
$ bun add @lobehub/charts
@lobehub/ui (v6), react and react-dom (v19) are peer dependencies; install them too if your project does not have them yet. The package is ESM only.
import { LineChart } from '@lobehub/charts';
const data = [
{ date: 'Jan 22', Inverters: 2338, SolarPanels: 2890 },
{ date: 'Feb 22', Inverters: 2103, SolarPanels: 2756 },
{ date: 'Mar 22', Inverters: 2194, SolarPanels: 3322 },
];
// `index` is the x-axis key, `categories` are the series to plot
export default () => (
);
See the documents for every component, live demos and props.
๐ค AI-Powered Development
Lobe Charts publishes agent-readable docs, generated from the same source as the documentation site.
| Resource | What it is | How to use it |
|---|---|---|
Agent Skill - skills.md |
Skill entry point: setup, a recommended workflow and an index of every component page | Give the URL to your agent (Cursor, Claude Code, Codex, โฆ), or save it as a SKILL.md in your agentโs skills folder |
llms.txt - llms.txt |
llms.txt index of every docs page | Point any llms.txt-aware tool at it |
Component reference - https://charts.lobehub.com/skills/components/.md |
Markdown page for one component, e.g. line-chart.md |
Fetch it before writing code with that component |
Works with Cursor, Claude Code, Codex, Windsurf, GitHub Copilot and any tool that can read a URL or llms.txt. Copy-paste prompt:
Use @lobehub/charts. Read https://charts.lobehub.com/skills.md first,
then fetch the reference page of each component you use before writing code.
[!NOTE]
There is no MCP server or skill install CLI yet;skills.mdandllms.txtare the agent entry points.
๐ Documentation
- Docs & live demos: charts.lobehub.com - line, area, bar, composed, donut / pie, funnel, scatter, radar, sparklines, heatmaps, trackers, benchmark charts and more
- Changelog: CHANGELOG.md
โจ๏ธ Local Development
$ git clone https://github.com/lobehub/lobe-charts.git
$ cd lobe-charts
$ bun install
$ bun start
๐ค Contributing
Contributions of all types are more than welcome, if you are interested in contributing code, feel free to check out our GitHub Issues to get stuck in to show us what youโre made of.
๐ฉท Sponsor
Every bit counts and your one-time donation sparkles in our galaxy of support! Youโre a shooting star, making a swift and bright impact on our journey. Thank you for believing in us โ your generosity guides us toward our mission, one brilliant flash at a time.
๐ Links
- ๐ญ Lobe UI - React component library for AI applications
- ๐ฅจ Lobe Icons - AI / LLM brand logo and icon library
- ๐ Lobe Charts - React chart component library
- โ๏ธ Lobe Editor - Lexical-based rich text editor for React, with Markdown, plugins and a chat composer
- ๐ค Lobe TTS - TTS / STT speech library
- ๐ Lobe Lint - ESLint, Prettier, Stylelint, Commitlint and more lint configs
- ๐ Fluent Emoji - Fluent Emoji asset library
Credits
- recharts -
- tremor -
- react-activity-calendar -
Recommended Tools
Try a different keyword or remove a filter.
Install
npx skillfish add lobehub/lobe-charts