News for hackers. Stuff that matters.
Re:Smoothie Charts: a small javascript charting library for ... by benohear on Saturday March 17, 2012 @03:59AM (#3716621)
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.

Re:Smoothie Charts: a small javascript charting library for ... by joewalnes on Saturday March 17, 2012 @07:55AM (#3716868)
(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.

Re:Smoothie Charts: a small javascript charting library for ... by pfraze on Saturday March 17, 2012 @10:17AM (#3717117)
Cool-- please do release the webgl one, if you finish it.
Re:Smoothie Charts: a small javascript charting library for ... by mmaunder on Saturday March 17, 2012 @12:37PM (#3717432)
This is awesome, thanks Joe I'll very likely use this in my next product.