talira

ChartGPU

A WebGPU charting library for millions of points and real-time streaming

open sourceMITfree

ChartGPU is an MIT TypeScript charting library that renders with WebGPU rather than Canvas2D or WebGL, aimed at dense time series with millions of points, streaming updates (appendData, with an optional ring buffer), dashboards of many charts sharing one GPU device, and 3D point clouds and surfaces. Its series cover line, area, bar, scatter (with a density mode) and pie, candlestick and OHLC for finance, and heatmaps, bands and error bars for science, with LTTB and min/max sampling, zoom synced across charts and annotations. It has no npm runtime dependencies and no WebGL or Canvas fallback; React bindings are a separate package.

Problems it solves

  • plot millions of data points in the browser without it stuttering
  • a JavaScript chart library fast enough for live streaming data
  • render a candlestick chart for a large market data feed in my web app

Features

  • renders with WebGPU for multi-million-point series
  • streaming appendData with optional ring capacity
  • many charts sharing one GPU device, with synced zoom
  • finance and scientific series, plus 3D point clouds and surfaces

Limitations

  • There's no WebGL or Canvas fallback: it needs a WebGPU browser (Chrome or Edge 113+, Safari 18+; Firefox support is incomplete on Linux).1

Alternatives

The same job

These do what ChartGPU does.

  1. Apache ECharts Open source JavaScript library for interactive charts and visualization
  2. Lightweight Charts Tiny, fast HTML5 canvas library for interactive financial charts
  3. Chart.js Simple yet flexible JavaScript charting for the web
  4. D3 The JavaScript library for bespoke data visualization
  5. ApexCharts Interactive SVG charts for the web, free under M revenue
  6. Chartkick Create beautiful JavaScript charts with one line of Ruby

Compare ChartGPU with the top 3