Graphing new users by date in a Rails app using Seer
- by Danger Angell
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)?