Clean up line graph code.
Clean up code in bar chart and time series graphs.