How to get enum labels in chartkick piechart instead of integer value working on Enums

+1 vote
asked Mar 15, 2016 by hevner (980 points)
Gender is defined as: enum gender: {male: 1, female: 2, other: 3}chartkick is used to represent gender data in piechartpie_chart @registrations.

3 Answers

0 votes
answered May 30, 2016 by Gun3908 (450 points)
selected Jun 1, 2016 by Troublefiel
Best answer
Using a decision tree seems to work quite well for this problem. Following code for adding activity in android manifest file
commented May 31, 2016 by Works_me (1,140 points)
This time you found your problem. More info here and here
0 votes
answered Apr 4, 2016 by Vfa_A (1,030 points)
Along with all above answer i would like to add this point too
Some tutorials in this website Cannot get rid of background picture when using Chartkick ...
0 votes
answered May 9, 2016 by Bushy (290 points)
This is a nice little paper on this topic. This is just to get you started

What is Geekub?

Q&A site for professional and enthusiast programmers, software developers and other technical users. With your help, we hope to work together to build a library of detailed answers to just about any question that is related to programming!