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
Chartkick with months name as axis
-
16-06-2023 - |
Domanda
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
What am I doing wrong.
Soluzione
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow