
8

Adding Chartkick to a Rails 6 App - Things I Always Forget
source link: https://fuzzyblog.io/blog/rails/2020/04/02/adding-chartkick-to-a-rails-6-app.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Adding Chartkick to a Rails 6 App - Things I Always Forget
Apr 2, 2020

Chartkick is the charting engine that I've used for a bunch of years. When you use Chartkick on a Rails 6 app, here are some gotchas:
Gemfile
gem 'chartkick'
Command Line
bundle install
yarn add chartkick chart.js
yarn install --check-files
Add to application.js
require("chartkick")
require("chart.js")
Posted In: #rails
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK