I have to models
. Employee
and locations
. the association
between them is location
has many employees
. and employee
belongs to location
. i want to draw a pie
chart between this 2
models. means i want to show all locations
and employees
count
of that location
in pie chart
. how can i do that?
i was trying to implement this using the Chartkick gem
.
but do not know how to draw the graph between them.