Make timeseries Yaxis scale function configurable

For a timeseries graph, you can now choose between the max of all
series and the max of the sums of points in time.

This change allows us to create nice axes on stacked graphs as well as
overlappy graphs.