public static GETCATEGORICALVALUES()

in src/BulletChartColumns.ts [65:89]


    public static GETCATEGORICALVALUES(dataView: DataView): BulletChartColumns<any[]> {
        const categorical: DataViewCategorical = dataView && dataView.categorical,
            categories = categorical && categorical.categories || [],
            values = categorical && categorical.values || <DataViewValueColumns>[],
            series = categorical && values.source && this.GETSERIESVALUES(dataView);

        return categorical && lodashMapvalues(new this<any[]>(), (n, i) =>
            (<DataViewCategoricalColumn[]>Array.from(categories)).concat(Array.from(values))
                .filter(x => x.source.roles && x.source.roles[i]).map(x => {
                    const hasHighLight: boolean = !!(<DataViewValueColumn>x).highlights;
                    let useHighlightAsValue: boolean;

                    if (hasHighLight) {
                        useHighlightAsValue = (<DataViewValueColumn>x).highlights.every(y => {
                            if (y === null || y === undefined) {
                                return false;
                            }
                            return true;
                        });
                    }

                    return useHighlightAsValue ? (<DataViewValueColumn>x).highlights : (<DataViewValueColumn>x).values;
                })[0]
            || values.source && values.source.roles && values.source.roles[i] && series);
    }