Skip to content

rogerwelin/sinatra-chartkick-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sinatra-chartkick-example

Synopsis

An example Sinatra app showing how to leverage the chartkick gem to create beautiful charts with one line of code.

Instructions

  1. git clone https://github.com/rogerwelin/sinatra-chartkick-example
  2. bundle install --path vendor/bundle
  3. bundle exec rackup
  4. Head over to localhost:9292

Further Reading

This is just a minimal example showing how to use chartkick in Sinatra. Typically you would like to pull data from a database, such as mysql, for the chart-data. For this I would advise to use the activerecord and groupdate gems. Further reading: