Chartkick- load your JS chart graphics faster
We all love nice looking colourful charts ( 3d) on our web and mobile platforms. But most of these make the page load slower.
3d Visualizations of Pie Charts, Graph Charts, Bar Charts. Column Diagrams from web databases are generally rendered over standard JS using jQuery which sometimes can cause timeouts or may not be rendered properly if the page doesn’t load fast.
Chartkick aims to solve that problem by simplifying your admin dashboard and giving each chart its own endpoint.
Example of a Column Chart
<%= column_chart Task.group_by_day_of_week(:created_at).count %>
Example of a Pie Chart
<%= pie_chart Goal.group("name").count %>
So how do you install it ?
Start by downloading Chartkick here
Add this line to your application’s Gemfile:
chartkick.js runs as a Rails engine - no need to install it.
Note: These files must be included before the helper methods.
For Google Charts, use:
If you prefer Highcharts, use:
Head over to GitHub to read the rest of the documentation or if you are wiling to fork it.