def sparklines_by_day(opts={})
      range = opts[:range] ||= 2.weeks.ago.midnight..Time.now
      self.metrics.group_by_day(:created_at, range: range ).count.map{|o| o.to_a.last}
    end
def sparklines_by_day(opts={})
      range = opts[:range] ||= 2.weeks.ago.midnight..Time.now
      self.metrics.group_by_day(:created_at, range: range ).count.map{|o| o.to_a.last}
    end
CHART STUFF