Open source

nervure

Animated SVG charts, without dependency, in every framework. The library is free, under the MIT license. Every chart on this page is drawn with it.

Live data

A chart can call an API at a regular interval, or listen to a server stream or a WebSocket. The figures below are made up in your browser, every second.

Market price
Processor and memory (%)

Some of the 87 chart types

Candlesticks
Flows
Exchanges
Lines and target
Bars
Donut
Radar
Gauge
Treemap
Waterfall
Heatmap
Timeline
3D bars
Calendar heatmap
Pipes
Pitch and line-ups
Organ: the heart
Ranking

Use it

One script tag is enough in an HTML page. The documentation covers each framework.

<!-- HTML, no build tool -->
<script src="https://cdn.jsdelivr.net/npm/nervure"></script>
<nervure-chart style="height: 300px" spec='{"type":"gauge","value":64,"unit":" %"}'></nervure-chart>

// React, Next.js
import { Chart } from 'nervure/react'
<Chart spec={spec} style={{ height: 300 }} />

// Vue, Nuxt
import { NervureChart } from 'nervure/vue'
<NervureChart :spec="spec" />

// Live data: call an API every second
import { append, live, poll } from 'nervure/live'
live(chart, spec, poll('/api/price', { every: 1000 }), {
  apply: (data, last) => append(last, data.time, { Price: data.price }, 60),
})

What it brings

  • 87 chart types; one weighs 8 to 13 kB compressed, all of them 62 kB
  • Palette, colours by name, light and dark themes, changed at any time
  • Titles, labels, reference lines and notes
  • SVG and PNG export
  • Keyboard, screen readers and reduced motion
  • Documentation rebuilt at each code update
  • Maps of 239 countries, dashboards, an online editor, an MCP server for AI assistants