Streamlined the way LineChart and BarChart are instntiated. Now values can be given in the form of arrays.