0👍
For chart creation with charts.js, did you watch the gem ‘groupdate’?
https://github.com/ankane/groupdate
Which then allows you to simply do:
<% = line_chart User.group_by_day(:created_at).count %>
Source:stackexchange.com
0👍
For chart creation with charts.js, did you watch the gem ‘groupdate’?
https://github.com/ankane/groupdate
Which then allows you to simply do:
<% = line_chart User.group_by_day(:created_at).count %>