David Kimura PRO said over 4 years ago on Some Advanced Charts and Statistics :
  There is this episode which covers chartkick. https://www.driftingruby.com/episodes/charts-and-graphs To use it with Rails 6 or Webpacker

yarn add chartkick chart.js

And in app/javascript/packs/application.js, add:

require("chartkick")
require("chart.js")