# ChartGPU – WebGPU-powered charting library (1M points at 60…

Creator here. I built ChartGPU because I kept hitting the same wall: charting libraries that claim to be "fast" but choke past 100K data points. The core insight: Canvas2D is fundamentally CPU-bound. Even WebGL chart libraries still do most computation on the CPU. So I moved everything to the GPU v…

- **Page:** https://magpie.gallery/i/chartgpu-webgpu-powered-charting-library-1m-points-bcu3
- **Type:** Link to an idea elsewhere
- **Category:** AI & dev
- **Runs on:** web
- **Tags:** charts, webgpu, visualization, performance

## Source

Web · huntergemmer: ChartGPU – WebGPU-powered charting library (1M points at 60fps)

- **Original:** https://news.ycombinator.com/item?id=46706528

> Creator here. I built ChartGPU because I kept hitting the same wall: charting libraries that claim to be "fast" but choke past 100K data points. The core insight: Canvas2D is fundamentally CPU-bound. Even WebGL chart libraries still do most computation on the CPU. So I moved everything to the GPU via WebGPU: - LTTB downsampling runs as a compute shader - Hit-testing for tooltips/hover is GPU-accelerated - Rendering uses instanced draws (one draw call per series) The result: 1M points at 60fps with smooth zoom/pan. Live demo: https://chartgpu.github.io/ChartGPU/examples/million-points/ Currently supports line, area, bar, scatter, pie, and candlestick charts. MIT licensed, available on npm: `npm install chartgpu` Happy to answer questions about WebGPU internals or architecture decisions. https://github.com/ChartGPU/ChartGPU

## GitHub projects

- https://github.com/ChartGPU/ChartGPU

## Rules for reuse

- Build your own version: don't copy another product's code, look, icons, colours or copy.
- The original belongs to its author; Magpie only links to it.
- The original content's copyright belongs to its creator. Magpie doesn't download or re-upload it; we only show the link and the official preview.
