4 ms·
SVG performance degrades based on the amount of data that you are drawing. If you are rendering basic charts you will never run into any issues, if you are doi
by seasoup 12y ago
SVG performance degrades based on the amount of data that you are drawing. If you are rendering basic charts you will never run into any issues, if you are doing scatterplots with thousands of points or some other visualization with lots of separate nodes then you run into performance issues.
Canvas performance is limited by the size of the canvas, the larger the canvas, the more time it takes to redraw it.
SVG lets you tie into the DOM and DOM manipulation methods allowing for simple event interactions. Interactive canvas can be done but is more time consuming and difficult, though there are now canvas charting libraries that provide you with some basic "click" or even "hover" functionality.