Add function to get average of data points.
Bar changes color depending on whether it is less than the average.