learning_ai_common_plat/packages/charts/src/index.ts
saravanakumardb1 d04a303f98 feat(charts): RadarChart + charts@0.1.1 (Wave 9.A.5)
Multi-axis polygon (spider) chart: token palette, concentric grid rings,
axis labels, NaN-safe. Pure SVG, role=img + title. 3 tests added (26/26 total);
tsc clean; published @bytelyst/charts@0.1.1 to Gitea.
2026-05-28 18:27:45 -07:00

41 lines
1.4 KiB
TypeScript

/**
* @bytelyst/charts — Token-themed chart primitives.
*
* Exports (0.1.0 — Wave 9.A.1-4):
* <LineChart> multi-series line chart, smoothing optional
* <BarChart> vertical bar chart with diverging baseline
* <AreaChart> single-series filled area chart with gradient
* <Donut> categorical share-of-total ring chart
* <Gauge> half-circle dial for single-metric tanks
*
* Deferred to 0.2.x (per roadmap §9.A):
* <StackedBar>, <RadarChart>
*
* Design rules:
* - Pure SVG; zero runtime deps
* - Token-driven palette (`var(--bl-accent)` etc.) with per-element
* overrides
* - SSR-safe — `useId()` everywhere (no `Math.random()`)
* - `role="img"` + `<title>` for accessible labelling
*/
export { LineChart } from './LineChart.js';
export type { LineChartProps, LineSeries } from './LineChart.js';
export { BarChart } from './BarChart.js';
export type { BarChartProps, BarDatum } from './BarChart.js';
export { AreaChart } from './AreaChart.js';
export type { AreaChartProps } from './AreaChart.js';
export { Donut } from './Donut.js';
export type { DonutProps, DonutSlice } from './Donut.js';
export { Gauge } from './Gauge.js';
export type { GaugeProps } from './Gauge.js';
export { RadarChart } from './RadarChart.js';
export type { RadarChartProps, RadarSeries } from './RadarChart.js';
export { extent, linearScale, smoothPath, formatNumber } from './utils.js';