Min, Max, Avg displayed in Graph panel

When selecting data from a MySQL data like this:

SELECT UNIX_TIMESTAMP(date) AS time_sec, daily_max AS value, service_name as metric FROM monvis.service_metrics WHERE service_name=‘test’ ORDER BY time_sec ASC;

The Min, Max, Avg, etc displayed in the legend never changes no matter how small or large I select for the time range. It is grabbing and using every single data point selected from the database for these values whether I ask for them to be displayed or not. Is this something I can fix?

Nevermind. Fixed it with timeFilter