概要 原著者の許諾を得て翻訳・公開いたします。 英語記事: Create charts in a Ruby on Rails app with just one line of code 原文公開日: 2018/05/04 著者: Paweł Dąbrowsk Chartableは著者自身が作成したgemです。 Railsアプリでチャートが使えたらとても素敵ですが、正しいデータを準備してからJavaScriptでビューに表示するのはつらいことがあります。そこで今回はChartkick gemとChartable gemを用いるソリューションをご紹介いたします。 Chartkick gemは、コードを1行書くだけで美麗かつ有用なチャートを表示できます。Chartable gemは、任意のActive Recordクエリを分析可能なハッシュに変換します。この2つのgemを用いることで、チャート