Files
chartkit/dist/react/index.js
T
CatoandClaude b54b26715e feat: ShareBars otherLabel and a ColumnChart for values by period (#9)
ShareBars took {rows, caption, other} and always called the remainder
"Other", so an app that knew what its rest was ("Others, each below 5%")
could only say it in the caption. `otherLabel` names it in the legend and the
table; left out, it is still "Other".

ColumnChart draws figures by period: revenue and net income by fiscal year,
periods left to right in the order given (fiscal labels are not dates, so
nothing re-sorts them), several series side by side, a loss below the zero
line, a missing figure as no column and "—" in the table, each column
focusable with its value and a link to its source. The ranked BarChart could
not do this: it re-orders rows by size, so a year chart came out of order.

Release 0.2.0.


Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-27 08:55:08 +01:00

18 lines
815 B
JavaScript

/**
* @bitbaum/chartkit/react — the charts every product draws.
*
* import { LineChart, BarChart } from "@bitbaum/chartkit/react";
* import "@bitbaum/chartkit/styles.css";
*
* Every component renders on the server to SVG and HTML: no effect, no
* measurement. The look follows the app's tokens through `--ck-*` variables
* (see styles.css); the behaviour — a table behind every drawing, a label
* that never clips, a point that is a link — is fixed here.
*/
export { LineChart } from "./LineChart.js";
export { BarChart, ShareBars } from "./Bars.js";
export { ColumnChart, columnScale } from "./Columns.js";
export { Sparkline, Meter, StatTiles } from "./Small.js";
export { Timeline } from "./Timeline.js";
export { ChartFigure, DataTable } from "./Figure.js";
//# sourceMappingURL=index.js.map