Added code for stacked bar chart and de-generalized the legend
Added the other chart types and some hacky stuff to pie chart, which requires different svg dimensions