-
Website
http://adam.blog.heroku.com/ -
Original page
http://adam.blog.heroku.com/past/2008/9/16/rifgraf/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
nevyn
2 comments · 4 points
-
adamheroku
68 comments · 3 points
-
justindz
2 comments · 1 points
-
paulleader
3 comments · 1 points
-
drnic
2 comments · 6 points
-
-
Popular Threads
-
No Knobs
1 week ago · 2 comments
-
Destroying Alien Civilizations, All In A Day's Work
6 days ago · 1 comment
-
No Knobs
But I have two questions for you:
1) Can it handle pulling data from existing sets? I already have my tables down and don't really want to change them, or change how they are populated.
2) Will Rifgraf, or more precisely AmCharts, handle large data sets? I'm talking 20K-30k points over a couple of years?
2) amcharts caps out at 20k I believe, which leads me to believe it can handle up to that number smoothly.
1) It stores all data as strings -- even the timestamps. (Umm, why?)
2) The client gets all data for a graph every time it starts up (zooming is done locally, server is no longer involved)
3) The server constructs the data as a CSV file in memory (not even trying to stream it)
4) If you take the 20K limit as a given, that's 2 years of hourly activity, Or 13 days of minutely activity.
We love rifgraf. So simple, and makes so much sense.
If you want a change, fork it on github, and then send me a pull request. Or fork and deploy your own copy on Heroku, which should be as simple as git clone, heroku create, git push heroku master. :)
But the charting seems to misbehave.
/usr/local/lib/ruby/1.8/net/http.rb:560:in `initialize': Invalid argument - connect(2) (Errno::EINVAL)
from /usr/local/lib/ruby/1.8/net/http.rb:560:in `open'
from /usr/local/lib/ruby/1.8/net/http.rb:560:in `connect'
from /usr/local/lib/ruby/1.8/timeout.rb:53:in `timeout'
from /usr/local/lib/ruby/1.8/timeout.rb:93:in `timeout'
from /usr/local/lib/ruby/1.8/net/http.rb:560:in `connect'
from /usr/local/lib/ruby/1.8/net/http.rb:553:in `do_start'
from /usr/local/lib/ruby/1.8/net/http.rb:542:in `start'
from /usr/local/lib/ruby/gems/1.8/gems/rest-client-1.0.3/lib/restclient/request.rb:123:in `transmit'
from /usr/local/lib/ruby/gems/1.8/gems/rest-client-1.0.3/lib/restclient/request.rb:49:in `execute_inner'
from /usr/local/lib/ruby/gems/1.8/gems/rest-client-1.0.3/lib/restclient/request.rb:39:in `execute'
from /usr/local/lib/ruby/gems/1.8/gems/rest-client-1.0.3/lib/restclient/request.rb:17:in `execute'
from /usr/local/lib/ruby/gems/1.8/gems/rest-client-1.0.3/lib/restclient.rb:65:in `get'
from ./doit.rb:7