in pbi-heat-streams/src/data/convertCategoricalDataView.ts [119:146]
function determineXDomain(
data: ICategoryDataMap,
options: IVisualDataOptions,
): XDomain {
// Compute the per-category domain, flatten those and compute the domain over those values
const domain: XDomain = <XDomain>(
extent(
flatten(
<any>(
Object.keys(data).map(category =>
extent(
data[category],
(pv: { position: Date | number }) => pv.position,
),
)
),
),
)
)
// The actual end should be the end of the final slice based on the aggregation configuration
domain[1] = getSliceEnd(
domain[1],
options.numericAggregation,
options.dateAggregation,
)
return domain
}