Reworked code such that we can pass in multiple series of data.
If more than one series is passed in, it will automatically generate
a stacked bar chart