@chartcraft/core
v0.4.0
Published
ChartCraft core — framework-agnostic charting engine (zero dependencies)
Maintainers
Readme
@chartcraft/core
Framework-agnostic charting engine. Canvas 2D, zero runtime dependencies,
strict TypeScript, ESM + CJS + .d.ts.
39 chart types, 6 cross-cutting features (error bars, trendlines, data labels, annotations, zoom/pan/brush, export), a screen-reader data table and full keyboard navigation on every type, a colorblind-safe validated palette, and measured performance (3.1 ms to redraw 1M points).
npm install @chartcraft/coreimport { createChart } from '@chartcraft/core';
createChart(document.getElementById('chart')!, {
type: 'line',
title: 'Weekly active users',
data: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May'],
series: [{ name: 'WAU', data: [12000, 14200, 15800, 21000, 31000] }],
},
});Using React, Vue, or Svelte? Use the matching wrapper instead —
@chartcraft/react,
@chartcraft/vue, or
@chartcraft/svelte —
each a thin lifecycle/event bridge around this package, at full feature
parity.
Docs, live examples and the full API reference: https://sitharaj88.github.io/chartcraft/
Source, issues, contributing: https://github.com/sitharaj88/chartcraft
Built by Sitharaj — GitHub · LinkedIn · buy me a coffee
MIT
