HistoryQueryExecutor

I am implementing a custom HistoryQueryExecutor.
In my startReading function, I get the passed in aggregation mode with controller.getQueryParameters.getAggregationMode().getName()
When called from a Vision screen, the aggmode is correct. When called from a Perspective PowerChart, it is always MinMax.