Chartkick

Add Chartkick to your Rails app
Icons/chart bar
Used 37 times
Created by
B Benjamin Darcet

Usage

Run this command in your Rails app directory in the terminal:

rails app:template LOCATION="https://railsbytes.com/script/VeKs5z"
Template Source

Review the code before running this template on your machine.

run "bundle add chartkick"
run "yarn add chartkick chart.js"
inject_into_file 'app/javascript/packs/application.js' do <<~EOF
require("chartkick")
require("chart.js")
  EOF
end
Comments

Sign up or Login to leave a comment.