0

I am new in ruby and I am having a problem using Chartkick. I am using this code

<%= area_chart  MediaDownload.select("COUNT(*) as count_all , monthname(created_at) as created_at").group('created_at') %>

What I want to achieve is to get a area chart with information per month (displaying month names), but instead I am receiving this graphic

enter image description here

What am I doing wrong.

Flezcano
  • 1,647
  • 5
  • 22
  • 39

1 Answers1

0

Unfortunately, Chartkick does not support a discrete axis for line or area charts. You can follow the progress here: https://github.com/ankane/chartkick/issues/68

Andrew Kane
  • 3,200
  • 19
  • 40