private selectSingleDataPoint()

in src/interactivityFilterService.ts [276:291]


    private selectSingleDataPoint(dataPoint: FilterDataPoint, shouldDataPointBeSelected: boolean): void {
        if (!dataPoint || dataPoint.category == null || dataPoint.category === undefined) {
            return;
        }

        const category: powerbi.PrimitiveValue = dataPoint.category;

        if (shouldDataPointBeSelected) {
            dataPoint.selected = true;
            this.selectedCategories.push(category);
        }
        else {
            dataPoint.selected = false;
            this.removeCategory(category);
        }
    }