How to display five-minute peak or aggregate values instead of the average?

By default the value that is displayed is the average of the values it retrieves from the backend for the granularity being viewed. For example, if you are looking at a chart that has a value for every five-minutes, the value you are seeing is the average of all the values for that five-minute period.

Is there any way to change this behavior to display a max or an aggregate instead of the average?