in src/dataViewBuilder/dataViewBuilder.ts [424:458]
function applySeriesData(
target: DataViewValueColumn,
source: DataViewBuilderSeriesData,
categoryLength: number): void {
let values: PrimitiveValue[] = source.values;
target.values = values;
let highlights: PrimitiveValue[] = source.highlights;
if (highlights) {
target.highlights = highlights;
}
let aggregates: DataViewColumnAggregates;
if (source.minLocal !== undefined) {
if (!aggregates)
aggregates = {};
aggregates.minLocal = source.minLocal;
}
if (source.maxLocal !== undefined) {
if (!aggregates)
aggregates = {};
aggregates.maxLocal = source.maxLocal;
}
if (aggregates) {
target.source.aggregates = aggregates;
extend(target, aggregates);
}
}