Add option to average multiple measures per bar

Useful if the refresh rate is large.