{"by":"huntergemmer","descendants":214,"id":46706528,"kids":[46709415,46708855,46708103,46712941,46715091,46707865,46707654,46710640,46709611,46708319,46709402,46707539,46707023,46710811,46711258,46809144,46715768,46707704,46712257,46707588,46707049,46709153,46708380,46707473,46716174,46716158,46707186,46707452,46706835,46708886,46708845,46716825,46708579,46718103,46707196,46709011,46710223,46719289,46711224,46721753,46713404,46716552,46712604,46707943,46719960,46708584,46721924,46710417,46708256,46707236,46707032,46708489,46712404,46707523,46707059,46711056,46711391,46713131,46710098,46710105,46708306,46711062,46707783,46715482,46706684,46713633,46716737,46778321,46706538,46707313,46708575,46710932,46713122,46707274,46707935],"score":670,"text":"Creator here. I built ChartGPU because I kept hitting the same wall: charting libraries that claim to be &quot;fast&quot; but choke past 100K data points.<p>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:<p>- LTTB downsampling runs as a compute shader\n- Hit-testing for tooltips&#x2F;hover is GPU-accelerated\n- Rendering uses instanced draws (one draw call per series)<p>The result: 1M points at 60fps with smooth zoom&#x2F;pan.<p>Live demo: <a href=\"https:&#x2F;&#x2F;chartgpu.github.io&#x2F;ChartGPU&#x2F;examples&#x2F;million-points&#x2F;\" rel=\"nofollow\">https:&#x2F;&#x2F;chartgpu.github.io&#x2F;ChartGPU&#x2F;examples&#x2F;million-points&#x2F;</a><p>Currently supports line, area, bar, scatter, pie, and candlestick charts. MIT licensed, available on npm: `npm install chartgpu`<p>Happy to answer questions about WebGPU internals or architecture decisions.","time":1769007296,"title":"Show HN: ChartGPU – WebGPU-powered charting library (1M points at 60fps)","type":"story","url":"https://github.com/ChartGPU/ChartGPU"}