ruby on rails - customize a chartkick bar_chart -
i'm trying draw chart of user stories, grouped priority, this:
<%= bar_chart @stories.group(:priority).where(:priority => ["1", "2", "3", "4"]).count %>
turns out chart drawed want chart display description of priority. actually, 1 means 'low' , 3 means 'high. how can this?
Comments
Post a Comment