Rails Chartkick Gem Error Loading Chart No Adapter Found

Probably you missed loading Google Charts or Highcharts (the adapters).

Try adding this line <%= javascript_include_tag "//www.google.com/jsapi" %> before <%= javascript_include_tag "application", "chartkick" %>. Also check the Installation section in gem's home page (scroll down :)).


To View: Google Charts In your layout or views, add:

<%= javascript_include_tag "https://www.gstatic.com/charts/loader.js" %>

link: https://chartkick.com/#google-charts


I had a similar issue as well when I first tried out ChartKick. The error message that I got is Error Loading Chart: No charting libraries found - be sure to include one before your charts

Here's how I fixed it.

I simply added the following line of code below to the application.js file in the assets > javascript folder.

//= require Chart.bundle
//= require chartkick

Save and refresh, that should fix it.

That's all

I hope this helps.