Changes to how charts render, to fix problems with the legend and bar grouping. Added line chart and pie chart.