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.
npm install em-kitpnpm add em-kityarn add em-kitbun add em-kitNeeds react and react-dom 19.1.1 or later.
Live example
Last 24 hours
This hour, and counting
Revenue by plan · last 48 hours
Charts, KPIs and tables
8 of the 32 components, live. Hover one, or open its menu to export CSV, Excel or PNG.
April has no rows. The chart adds it and shows a gap.
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 belowColours 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 aboveTime 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 aboveLoading, empty and error states
Every card draws its own skeleton, empty state and error message from the one
Try them on the card belowresultsprop, so you design none of them.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 belowTranslations
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 aboveClick events
A click hands your handler the value or the period that was clicked, typed, ready to use as a filter.
Click a bar belowCharts 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
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.
Charts from a model
A model returns this JSON as a tool call. ChartFromSpec renders it.
{
"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 }
]
}