Thursday, August 4, 2016

Practical Graphs on Rails: Chartkick in Practice

In a previous article , I covered the basics of Chartkick - a great library to easily render graphs in Rails apps. The article gained some attention so I decided to cover a bit more and show how Chartkick, along with Groupdate, can be used to solve a real-world task.

Just to remind you, Chartkick is a gem that integrates with Rails and provides methods to quickly render graphs based on your data. This gem supports Chart.js, Google Charts, and Highchart adapters. Chartkick comes with out-of-the-box support for Groupdate, which simplifies writing some complex grouping queries.

In this post I will show you how to build an app visualizing click counts by day, month, or year for various items. Users will be able to select the date range with the help of a handy date picker and the resulting graph's scale will change accordingly.

Continue reading %Practical Graphs on Rails: Chartkick in Practice%


by Ilya Bodrov-Krukowski via SitePoint

No comments:

Post a Comment