RailsCod3rFuture said over 6 years ago on Charts and Graphs :

Greetings, I enjoyed your video on Chartkick, it's very informative. What I would like your advice on, is how do I use Chartkick alongside the Impressionist gem. To be more clear. I would like to graph the impressions of different pages. Lets say for example, the user show page.  I would like to get the

<%= line_chart current_user.impressionist_count, refresh: 60, xtitle: 'Monthly Profile View Count', ytitle: 'Amount of Views' %>

This approach isn't working for me. I need to be able to get the impressions count with scopes for days, weeks and months and years. I'm currently using Postgres. I've been searching for an approach all day long, to no avail.  If I'm able to use the scopes across model types like Product show page, etc. That would be great. Thanks again!

Impressionist documentation

https://github.com/charlotte-ruby/impressionist