문제

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.

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top