5 ms·
Nice, but beware that this kind of thing can be quite resource intensive (the triple chart demo takes over 60% of CPU on Chrome running on a netbook). I was al
by benohear 15y ago
Nice, but beware that this kind of thing can be quite resource intensive (the triple chart demo takes over 60% of CPU on Chrome running on a netbook).
I was also wondering why this is done with canvas rather than SVG.
- joewalnes 15y ago(I'm the author) An initial version of SmoothieCharts used SVG, but I switched to Canvas because I got slightly better performance (which actually surprised me). That's not strictly true - for very large charts, the SVG ones performed better, but I optimized for the common case. Recently I've been experimenting with a WebGL version - it gives MUCH better performance than both Canvas (2D) and SVG, but only works on the most recent browsers.