Graphing new users by date in a Rails app using Seer
Posted
by Danger Angell
on Stack Overflow
See other posts from Stack Overflow
or by Danger Angell
Published on 2010-03-14T02:20:24Z
Indexed on
2010/03/14
2:55 UTC
Read the original article
Hit count: 578
I'd like to implement a rolling graph showing new users by day over the last 7 days using Seer.
I've got Seer installed:
http://www.idolhands.com/ruby-on-rails/gems-plugins-and-engines/graphing-for-ruby-on-rails-with-seer
I'm struggling to get my brain around how to implement.
I've got an array of the Users I want to plot:
@users = User.all( :conditions => {:created_at => 7.days.ago..Time.zone.now})
Can't see the right way to implement the :data_method to roll them up by created_at date.
Anyone done this or similar with Seer?
Anyone smarter than me able to explain this after looking at the Seer sample page (linked above)?
© Stack Overflow or respective owner