Modularizes stacked bar chart