SVG is the default for data visualisation, and for good reason: it’s stylable, accessible, and inspectable. Then your dataset hits 10k points and the browser chokes. Every rect is a DOM node. Every re-render walks the tree. Canvas, at that scale, runs 100x faster.
The DOM tax
Each SVG element adds DOM weight: style resolution, layout, paint. At 1k elements you don’t notice. At 10k you do. At 100k the tab crashes. Canvas is a single DOM node; the pixels inside are your problem to paint.
What you lose
Accessibility — canvas is pixels, not semantic structure. Inspection — no DevTools element panel. Event delegation — you have to hit-test manually. For interactive data viz, these are real costs.
What you gain
Performance. A well-written canvas renderer runs 60fps with 100k points and smooth zoom/pan. The rendering loop is explicit, which means optimization is under your control, not the browser’s.
The hybrid approach
Canvas for the dense dataset. SVG/DOM for the interactive overlays (axis labels, tooltip, selection). A separate accessible table that exposes the data to screen readers. You get performance and accessibility — not a choice between them.
We build visualisations like this in products under Logicore and New Products.