David Kimura PRO said about 7 years ago on Charts and Graphs :

You might be able to do something like this for a daily count

current_user.impressions.group_by_day(:created_at).count