Skip to content

ameerjmc/rails-chart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

Create beautiful Javascript charts with one line of Ruby on Rails

include the gem in your Gemfile:

gem 'chartkick'

And then execute:

$ bundle install

Steps:

1.rails g model student

2.rake db:migrate

3.rails g controller students index

index.html.erb

<%= pie_chart Student.group(:course).count %>

<%= column_chart  Student.group(:course).count %>

pie-chart

Alt text

column-chart

Alt text

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages