d3 line chart with 100k points freezes the browser
D3 v7, React frontend, trying to render a line chart with about 100,000 points from a time-series API. The browser freezes for several seconds on initial render and hover tooltips are unusable. SVG path with that many points is huge. I've thought about downsampling but the whole point is to let users zoom in and see detail. Is there a way to render incrementally, or should I switch to canvas/WebGL for the main line and use SVG only for axes? What do people do for large time series in D3?
4 replies