Question

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.

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top