Sha256: b180d7b0b1fabfbd13b52c126e0a607979556fe1f270f4bd596f51a4b6ad4f8f
Contents?: true
Size: 994 Bytes
Versions: 62
Compression:
Stored size: 994 Bytes
Contents
<style> .alert { color: red; } .notice { color: green; } </style> <% flash.each do |type, msg| %><div class="<%= type %>"><%= msg %></div><% end %> <% if flash.any? %><hr /><% end %> <h1>Chartkick</h1> <h2>Create beautiful JavaScript charts with one line of Ruby</h2> <p> <a href="https://chartkick.com/">Chartkick</a> is a simple, yet powerful library for creating beautiful charts with one line of Ruby. It is built on top of the <a href="http://www.chartjs.org/">Chart.js</a> library.</p> <h3>Line Chart</h3><br /><br /> <%= line_chart Person.group_by_day(:updated_at).count %> <br /><br /> <h3>Pie Chart via Query</h3><br /><br /> <%= pie_chart Yogurt.group(:flavour).count %> <h3>Pie Chart (Manual)</h3><br /><br /> <%= pie_chart [ ['Task', 'Hours per Day'], ['Work',11], ['Eat',2], ['Commute',2], ['Watch TV', 2], ['Sleep',7] ] %> <h3>Column Chart</h3><br /><br /> <%= column_chart Person.group_by_hour_of_day(:updated_at, format: "%l %P").count %>
Version data entries
62 entries across 62 versions & 1 rubygems