Correct number of bars in stacked bar chart