32 components · MIT licensed

Finished React chart components for teams that already have a data layer.

A chart library draws the chart. EmKit ships the whole card. You bring the rows.

bash
npm install em-kit

Needs react and react-dom 19.1.1 or later.

Live example

your-app.com · saas productlive

Last 24 hours

$103,815
-3.3%vs Previous period
-3.3%vs Previous period

This hour, and counting

$1,867

Revenue by plan · last 48 hours

Change the theme, language or sample data and watch the charts follow.

Charts, KPIs and tables

8 of the 32 components, live. Hover one, or open its menu to export CSV, Excel or PNG.

Done for you in every component

Every card handles loading, errors, formatting, export and theming the same way, so nothing has to be built or reviewed around it.

  • Formatting

    Set a currency, a prefix, decimals or compact numbers once on a field. Axis ticks, value labels, tooltips and exports all follow, in the reader’s locale.

    Hover a bar on the card below
  • Colours and themes

    One theme object sets the colours, fonts, corner radius and spacing of every component. A value such as “Enterprise” keeps its colour from one chart to the next.

    Try the themes above
  • Time series

    Dates are labelled for their granularity, and periods missing from your rows are added, so a gap shows as a gap. A picker in the card switches between weeks, months and quarters.

    In the area chart above
  • Loading, empty and error states

    Every card draws its own skeleton, empty state and error message from the one results prop, so you design none of them.

    Try them on the card below
  • Export

    The menu in each card’s corner downloads its data as CSV or Excel, saves the chart as a PNG and opens it full screen.

    Open the menu on the card below
  • Translations

    Titles, field names, values, dates and numbers follow the provider’s language. English, German and French are built in, and you can add your own.

    Try DE or FR above
  • Click events

    A click hands your handler the value or the period that was clicked, typed, ready to use as a filter.

    Click a bar below
  • Charts and tables from one description

    Describe a field once. The same fields and rows drive bars, lines, pies, KPIs, tables, pivot tables and heat maps.

    See eight of them above

One finished card

Try each state

Click a bar: onBarClicked receives its value.

Add another card and it has all of this too, so the tenth is as finished as the first. When that pays off

Built for coding agents and AI chat

Docs an agent can read

/llms.txt
An index of every docs page.
/llms-full.txt
Every docs page in one Markdown file.
/docs/components/bar-chart.md
Any page as Markdown: add .md to its URL.
Use EmKit with AI →

Charts from a model

A model returns this JSON as a tool call. ChartFromSpec renders it.

json
{
  "chart": "donut",
  "title": "Revenue by region",
  "dimension": { "name": "region", "title": "Region" },
  "measure": {
    "name": "revenue",
    "title": "Revenue",
    "format": { "prefix": "$" }
  },
  "rows": [
    { "region": "North America", "revenue": 586975 },
    { "region": "Europe", "revenue": 403173 },
    { "region": "Asia Pacific", "revenue": 267726 },
    { "region": "Latin America", "revenue": 151307 },
    { "region": "Middle East", "revenue": 111295 }
  ]
}

Render your first chart

Install the package, add the provider, pass your rows.

Read the quick start