H
html canvas

  • FlareCharts is a charting library for Svelte 5, built on runes. It ships 33 charts and the primitives they are made from, so you can start with one tag and take full control later without rewriting anything.

    Every chart works two ways. Drop in , or , pass your data, and you get axes, tooltips, legends and animation out of the box. When you need something the one-tag version can't do, rebuild it from , , and friends. Both take the same data shape, so switching is a markup change.

    The 33 charts cover five families:

    Cartesian: line, area, bar, scatter, bubble, combo, waterfall, bullet, lollipop, dumbbell, funnel, sparkline and more Statistical: histogram, box plot, violin, candlestick, OHLC, heatmap, calendar heatmap Polar: pie, radar, polar area, radial bar, gauge Hierarchical: treemap, icicle, sunburst, circle pack Flow: sankey, chord

    Any chart can render to SVG or canvas through a single renderer prop. Canvas helps once the data gets large, and colors, motion and interactions carry over unchanged. Charts follow streaming data, resize to fit their container, and support sequential and diverging color scales.

    Styling goes through plain CSS variables, so you can restyle lines, ticks, grids and tooltips from your own stylesheet.

    Accessibility is on by default. Each chart renders a hidden data table for screen readers, supports keyboard navigation between points and announces changes through aria-live.

    Under the hood, d3 handles the math and Svelte owns the DOM. The scale and layout code is exposed as a typed, tested and tree-shakeable core you can use on its own.

    Install: bun add @faintshadow/flarecharts Landing: https://faintshadow.gitlab.io/flarecharts

    Updated
    Updated
  • Updated
    Updated