@flowpanel/charts
v0.1.0
Published
Recharts-backed chart widgets for FlowPanel dashboards
Readme
@flowpanel/charts
Lazy-loaded chart builders for FlowPanel widgets. Recharts under the hood.
Most users import from
flowpanel/charts(umbrella subpath).
Builders
import { areaChart, barChart, lineChart, pieChart } from "flowpanel/charts";
dashboard({
path: "/",
sections: [
{
label: "Signups",
columns: 1,
widgets: [
areaChart(
"Signups (last 7 days)",
async ({ db, dateRange }) => /* return rows */,
{ x: "day", y: "count", smooth: true, height: 220 },
),
],
},
],
});Bundle
flowpanel/charts is lazy — it doesn't count toward the initial admin bundle. The 60 KB charts payload only loads when a chart widget renders.
Documentation
License
MIT
