
Best React Chart Library for BI Dashboards (2026)
Compare 7 React chart libraries for BI dashboards: Recharts, Chart.js, ECharts, Highcharts, Plotly.js, MUI X, and RevoGrid. See features and trade-offs.

An editable dashboard has a harder consistency problem than a reporting dashboard. After an operator changes an order's revenue, the row, revenue chart and total should describe the same committed data. If a filter removes a record, both the chart and the KPI must use the same definition of the visible dataset.
You can build this by treating records as the single source of truth. A grid edits those records; a chart binds to a defined grid scope; KPI calculations use the same logical rows; and cell visuals derive from the current record instead of storing a second copy of its values.
RevoGrid's GridChartsPlugin (Charts package) and bindGridSummary (Pro) provide these bindings. We'll use them with an editable React sales dashboard and a Pro target-versus-actual cell visual.
The grid viewport is not the dataset. Virtualized grids render only a window of rows, but a total should not change when the user scrolls. A page of remote results is also not the same as the full filtered result.
| Scope | Intended meaning |
|---|---|
| Loaded filtered view | All untrimmed loaded rows, in the current order; not just rows in the viewport |
| Loaded source | Loaded rows before local filters and sorting |
| Current selection | Cells in the selected regions |
| Server result | All matching authorized records, including unloaded pages |
GridChartsPlugin supports view, source and selection scopes. In this example, both chart and KPI use the loaded filtered main-row view. We intentionally omit pinned records, hierarchy, group summaries and server paging from the example. If you add those features, define the aggregation rules first. Do not mix a chart of page 2 with a KPI representing the whole database and label both Total.
The important boundary is the committed edit. A pending draft may be visible inside an editor; it is not necessarily a change to the authoritative record.
Grid editor / clipboard
|
v
Validate + normalize + commit in store
|
v
Publish immutable source
|
+--> row cell visuals
|
+--> grid chart binding (view)
|
+--> visible-row summary binding --> React KPIA cell renderer should be a pure presentation of its input. It should not write to the source, start an API request or maintain its own revenue state. The summary should not count DOM cells; it needs the logical grid rows.
Install RevoGrid for React, RevoGrid Pro and the commercial Charts package. The example uses the released v4.4.3 API. GridChartsPlugin itself does not require the Pro grid package; the external editing and summary/cell visual APIs used here do.
Use integer cents in the source so currency sums do not accumulate floating-point rounding error. This example has bounded nonnegative values. For larger amounts, verify that individual values and aggregate sums remain safe integers.
import { useEffect, useMemo, useRef, useState } from 'react';
import { flushSync } from 'react-dom';
import { RevoGrid } from '@revolist/react-datagrid';
import type { ColumnRegular } from '@revolist/revogrid';
import * as charts from '@revolist/charts';
import { GridChartsPlugin } from '@revolist/charts/grid';
import {
EventManagerPlugin,
CellValidatePlugin,
bindGridSummary,
renderTargetActual,
type EventManagerConfig,
type ExternalEditResult,
} from '@revolist/revogrid-pro';
import '@revolist/revogrid-pro/styles.css';
type Sale = {
id: string;
product: string;
revenue: number;
target: number;
};
const money = (cents: number) =>
new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD' })
.format(cents / 100);
const plugins = [EventManagerPlugin, CellValidatePlugin, GridChartsPlugin];
const validCents = (v: unknown) =>
(typeof v === 'number' ||
(typeof v === 'string' && v.trim() !== '')) &&
Number.isSafeInteger(Number(v)) &&
Number(v) >= 0 && Number(v) <= 100_000_000;
const columns: ColumnRegular[] = [
{ prop: 'product', name: 'Product', readonly: true, sortable: true },
{
prop: 'revenue', name: 'Revenue (cents)', sortable: true,
validate: validCents,
cellTemplate: (h, { model }) => renderTargetActual(h, {
target: money(model.target),
actual: money(model.revenue),
actualTone: model.revenue >= model.target ? 'positive' : 'warning',
label: 'Actual ' + money(model.revenue) + ', target ' + money(model.target),
}),
},
{ prop: 'target', name: 'Target (cents)', readonly: true },
];
export function SalesDashboard() {
const [rows, setRows] = useState<Sale[]>(() => [
{ id: 'a', product: 'Alpha', revenue: 12000, target: 15000 },
{ id: 'b', product: 'Bravo', revenue: 24000, target: 20000 },
{ id: 'c', product: 'Charlie', revenue: 18000, target: 25000 },
]);
const [total, setTotal] = useState<number | null>(null);
const [error, setError] = useState('');
const latest = useRef(rows);
const gridRef = useRef<HTMLRevoGridElement>(null);
const chartRef = useRef<HTMLDivElement>(null);
const config = useMemo<EventManagerConfig>(() => ({
externalEdit: {
getRowKey: row => row.id,
sourceVersion: 'sales',
apply({ candidates, signal }) {
const next = new Map(latest.current.map(row => [row.id, row]));
const results = candidates.map<ExternalEditResult>(candidate => {
const { id, rowKey, prop, proposedValue } = candidate;
const row = typeof rowKey === 'string' ? next.get(rowKey) : undefined;
if (!row || prop !== 'revenue' || !validCents(proposedValue)) {
return { id, status: 'rejected', message: 'Enter valid cents' };
}
const revenue = Number(proposedValue);
if (row.revenue === revenue) return { id, status: 'unchanged' };
next.set(row.id, { ...row, revenue });
return { id, status: 'changed', value: revenue };
});
signal.throwIfAborted();
if (results.some(r => r.status === 'changed')) {
latest.current = [...next.values()];
flushSync(() => setRows(latest.current));
}
return results;
},
},
}), []);
useEffect(() => {
const grid = gridRef.current;
const container = chartRef.current;
if (!grid || !container) return;
let active = true;
const report = () => {
if (active) setError('Dashboard could not refresh');
};
grid.gridCharts = {
runtime: charts,
getRowId: row => String(row.id),
onError: report,
charts: [{
container,
chartType: 'groupedColumn',
scope: 'view',
mapping: {
category: { prop: 'product' },
series: [{ prop: 'revenue' }, { prop: 'target' }],
},
}],
};
const summary = bindGridSummary<Sale>(grid, {
update: visible => setTotal(
visible.reduce((sum, row) => sum + row.revenue, 0)
),
onError: report,
});
return () => {
active = false;
summary.destroy();
grid.gridCharts = undefined;
};
}, []);
return (
<>
<p>Revenue of loaded matching rows: {total === null ? 'Loading' : money(total)}</p>
{error && <p role="alert">{error}</p>}
<div ref={chartRef} style={{ width: '100%', height: 300 }} />
<RevoGrid ref={gridRef} style={{ height: 280 }} source={rows}
columns={columns} plugins={plugins} eventManager={config} filter range />
</>
);
}The chart plots raw cents because the series uses the underlying numeric fields. Label its axis accordingly in a production dashboard or configure chart currency formatting. The cell visual and KPI already format cents as dollars. Keeping display formatting separate from data avoids feeding localized strings into numeric series.
There is no duplicated total field in the source. When an edit is accepted, the immutable source is published; the chart and summary read that source through the grid.
The chart's data depends on more than the source array. Filters, trimming and sorting may change the logical row view without creating a new array in React. bindGridSummary observes source publication and edit/filter/trim/sort events. Its implementation coalesces scheduled refreshes in a microtask and ignores stale asynchronous reads. It also exposes refresh() and destroy() for explicit refresh and cleanup.
This is not incremental aggregation: the callback receives the matching rows and the reduce above scans them. For large loaded datasets, measure that cost, avoid expensive per-cell formatting, and consider a server aggregate or application-owned incremental summary. The chart and KPI refresh independently; applications that need an atomic cross-widget frame should derive both from one shared versioned result.
Open the grid chart integration guide and the grid chart editing guide for the existing integration examples.
For the component above, the expected initial total is $540. Change Alpha's raw revenue from 12000 to 18000 cents. The new total is $600, the Alpha bar becomes 18000, and the cell changes from below target to above target. Filter out Bravo: the total becomes $360. Scroll or sort the remaining records and the total should stay $360.
Also test an invalid edit, duplicate labels with different IDs, an empty filter result, a source replacement, and unmounting the dashboard while a refresh is pending. A rejected edit must not change the chart or total. If the grid uses remote pages, assert that the label makes the loaded-data limitation clear.
AG Grid Integrated Charts also provides automatic chart updates after grid edits, sorting and filtering. This is a comparable approach when the chart is a view of grid data. The useful RevoGrid composition here is a separate chart runtime, a grid data binding, and a summary binding that can feed arbitrary application UI rather than only a chart component.
If your dashboard only has application-level filters, a simpler React derived-state solution may be enough: see our read-only invoice dashboard tutorial. For grouped analytical results, pivot charts use a different aggregation model. For a dashboard that edits operational records, explore the Charts guide and RevoGrid Pro trial.
For a broader feature comparison, see RevoGrid vs AG Grid.