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.
Re:Smoothie Charts: a small javascript charting library for ... by mbostock on Saturday March 17, 2012 @08:07AM (#3716888)
Nice; animated transitions are great for maintaining continuity when data is changing. Handling changes in the y-scale can be another source of distraction, so it's nice if you're able to fix the domain (as [0,1] in your example).

In January, I wrote a tutorial on how to implement this sort of real-time graph in D3.js, using transform transitions. (Don't get distracted by the top example; it's intentionally wonky.)

http://bost.ocks.org/mike/path/

Re:Smoothie Charts: a small javascript charting library for ... by TazeTSchnitzel on Saturday March 17, 2012 @07:40AM (#3716845)
I was pleasantly surprised this worked fine on my 3DS. No "script execution taking too long", no "page content too large".

It's nice that not everything requires jQuery these days.

Re:Smoothie Charts: a small javascript charting library for ... by ndcrandall on Saturday March 17, 2012 @12:05PM (#3717364)
This library is very interesting. I have been working on an MVP for my startup that pushes and receives live data over a websockets. So far we have been unimpressed with most of the current libraries out there. The important thing is responsiveness, especially on mobile browsers.

I am currently using http://rgraph.net and redrawing the graph every so often to get the live feel. I would like to know how your graph performs compared to rgraph?

Re:Smoothie Charts: a small javascript charting library for ... by catshirt on Friday March 16, 2012 @10:18PM (#3716170)
i replied in an earlier thread about smooth.js, an interpolation library, about how it was something i was looking for a week ago.

really, that was only a small part of the problem. what i was actually looking for, was a small charting library for live streaming data. thanks!

Re:Smoothie Charts: a small javascript charting library for ... by mmisu on Friday March 16, 2012 @09:43PM (#3716102)
Looks neat. What about browsers support ? Can you use it from IE8 ?
Re:Smoothie Charts: a small javascript charting library for ... by gbaygon on Friday March 16, 2012 @11:07PM (#3716266)
It works on Chrome, FF and Opera. It doesn't seem to work on ie8/9 (maybe canvas issues).
Re:Smoothie Charts: a small javascript charting library for ... by mmisu on Saturday March 17, 2012 @12:04AM (#3716331)
I think IE8 doesn't have the canvas element.
Re:Smoothie Charts: a small javascript charting library for ... by joelbirchler on Saturday March 17, 2012 @01:30AM (#3716444)
Explorercanvas will help you out here. I am not sure if it can keep up, but it performs very well. http://code.google.com/p/explorercanvas/
Re:Smoothie Charts: a small javascript charting library for ... by gbaygon on Saturday March 17, 2012 @01:47AM (#3716471)
Just tried it, renders nicely but it doesn't animate.
Re:Smoothie Charts: a small javascript charting library for ... by novalis on Friday March 16, 2012 @10:16PM (#3716167)
Lovely stuff sir. Thanks for sharing.
Re:Smoothie Charts: a small javascript charting library for ... by phob on Saturday March 17, 2012 @11:12PM (#3718986)
What advantage does this have over flot?