3 ms·
Why is canvas considered "wrong technology for illustration"?
by igvadaimon 12y ago
Why is canvas considered "wrong technology for illustration"?
- taf2 12y agoI don't believe it's necessarily the wrong tech for illustration... but SVG is maybe a more natural fit for graphing simple shapes like lines, bars, and circles... Also, Adobe Illustrator exports vector graphics which easily map to SVG and can even be exported directly to SVG. Additionally, the SVG makes it easier to attach event handlers to nodes within a graph so you can support mouse/touch interaction simply using the addEventListener... That said, canvas is closer to the pixel so you could implement vector graphics in canvas.
- davidMC1982 12y agoIn my experience, SVG is the overall better fit for graphing, but canvas is much faster. I have a use case that requires plotting over 10,000 data points and the only free libraries that I've found that can do this quickly are canvas based ones.