public Map<String, Object> formatExpanded(LocalDateDoubleTimeSeries value) {
List<Object[]> data = Lists.newArrayListWithCapacity(value.size());
for (LocalDateDoubleEntryIterator it = value.iterator(); it.hasNext(); ) {
LocalDate date = it.nextTime();
long epochMillis = date.toEpochDay() * MILLIS_PER_DAY;
data.add(new Object[]{epochMillis, it.currentValue()});
}
Map<String, String> templateData = ImmutableMap.of("data_field", "Historical Time Series",
"observation_time", "Historical Time Series");
Map<String, Object> timeSeries = ImmutableMap.of("fieldLabels", new String[]{"Time", "Value"},