Skip to content

About

πŸ“Š Lobe Charts - React modern charts components built on recharts

Topics

Resources

Stars

124 stars

Watchers

4 watching

Forks

Latest commit

Β 

History

182 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Lobe Charts

Charts for Dashboards and Model Leaderboards

Beautiful React charts for dashboards and AI benchmarks, themed with Lobe UI.

Documents Β· Changelog Β· Report Bug Β· Request Feature



Table of contents

TOC

πŸ’‘ 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.md and llms.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 () => (
  <LineChart categories={['SolarPanels', 'Inverters']} data={data} index="date" />
);

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/<name>.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.md and llms.txt are 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

Credits


πŸ“ License

Copyright Β© 2023 LobeHub.
This project is MIT licensed.

About

πŸ“Š Lobe Charts - React modern charts components built on recharts

Topics

Resources

Stars

124 stars

Watchers

4 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages