in src/interactivityService.ts [419:440]
private selectSingleDataPoint(dataPoint: SelectableDataPoint, shouldDataPointBeSelected: boolean): void {
if (!dataPoint || !dataPoint.identity) {
return;
}
const identity: ISelectionId = dataPoint.identity as ISelectionId;
if (shouldDataPointBeSelected) {
dataPoint.selected = true;
this.selectedIds.push(identity);
if (identity.hasIdentity()) {
this.removeSelectionIdsWithOnlyMeasures();
}
else {
this.removeSelectionIdsExceptOnlyMeasures();
}
}
else {
dataPoint.selected = false;
this.removeId(identity);
}
}