Added ability to use timeseries and intervals for y axis