I am trying to create a histogram in Dash with data that looks like this:
Month | Role | Quantity
-----------------------------------------------
January Engineer 10
January Lawyer 2
January Doctor 2
February Engineer 9
February Lawyer 4
February Doctor 1
March Engineer 6
March Lawyer 3
March Doctor 7
I would like the histogram to have the Quantity of total employees on the y-axis and the months on the x-axis.
Each bar should show the total number of employees for each month. At the same time, each bar show be composed of “segments” representing each type of employee for that month.
Could you please help out with this?
I’ve studied some examples about histograms, but don’t know how to divide each bar by segments corresponding to each type of worker.
Thank you.