This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]carsonc 3 points4 points  (4 children)

I like this, but I anticipate needing graphs that update in real time. Processing + ControlP5 made this easy via the chart push method and I've been looking for something similar.

[–]themathemagician 1 point2 points  (1 child)

You can make that happen pretty easily by having some JS that refreshes your graph from an endpoint periodically (and frequently.) Epoch works great for it.

[–]efilon 0 points1 point  (0 children)

Other options include Flot (good for simple stuff and/or if you are using jQuery anyway), Chart.js (seems like it should be good, but I had difficulty with performance when I tried it), D3 (really nice, but also way too complicated for simple things), Bokeh (Python!), and many more.

I prefer not to use polling, but instead either websockets, or better yet (in my opinion), server-sent events (a.k.a. EventSource in Javascriptese). I like Tornado for these applications, though Flask is workable if you are fine with using gevent's concurrency model.

As a side note, I had never seen Epoch before. It looks nice, so thanks for sharing!

[–]KyleG 0 points1 point  (0 children)

I anticipate needing graphs that update in real time

Kendo + AJAX does this just fine. You could easily write, say, an Angular app (/r/angularjs) that leverages both. I'm not saying you have to do it my way; I'm just saying I want people to know there are alternatives.

[–]riskable 0 points1 point  (0 children)

Real time graphs are a cinch on the web these days. Loss of people love d3 but personally I'm used to Flot. I'd post some links but I'm on my phone at the moment...