r/FlareCharts • • 5d ago

First (Actual) Release of FlareCharts Svelte Charting Library

Post image
1 Upvotes

FlareCharts 1.0 is out! It's a charting library for Svelte 5, built on runes.

Your first chart

Give it a container with a height and an array of series:

<script lang="ts">
      import { LineChart } from '@faintshadow/flarecharts';
    
      const revenue = [
        { date: new Date(2025, 0, 1), value: 48 },
        { date: new Date(2025, 1, 1), value: 61 },
        { date: new Date(2025, 2, 1), value: 55 },
        { date: new Date(2025, 3, 1), value: 72 }
      ];
    
    </script>

<div style="height: 280px">

  <LineChart
    xAxis={{ type: 'time' }}
    series={[{ name: 'Revenue', data: revenue, x: (d) => d.date, y: (d) => d.value }]}
  />

</div>

When you need more control, you can build the same chart from primitives (<Chart>, <Line>, <Axis>...). The data shape stays the same, so switching is a markup change.

What's in 1.0

  • 33 charts, from line and bar to sankey, chord, treemap, sunburst, radar, candlestick, violin and calendar heatmap
  • SVG or canvas rendering, switched with one `renderer` prop
  • Streaming data and charts that resize to their container
  • Theming through plain CSS variables
  • Keyboard navigation, screen-reader data tables and aria-live on every chart

Links

- Docs: https://flarecharts.gitbook.io/docs

- Landing: https://faintshadow.gitlab.io/flarecharts

- Bugs and feature requests: https://gitlab.com/FaintShadow/flarecharts/-/boards

If you build something with it, post it here. I'd love to see what people make. And if something breaks or a prop name confuses you, say so. The first few weeks of feedback will shape what 1.1 looks like.