});
}
BufferedDynamicImageResource queryAndRenderChart(Monitor monitor, Date[] range) {
Query q = new Query();
q.properties("startTime").between(range[0], range[1]);
DataGatherer gatherer = new DataGatherer();
monitor.query(q, gatherer);
HashMap<RegularTimePeriod,Integer> data = gatherer.getData();