in src/columns.ts [36:45]
public static getCategoricalColumns(dataView: DataView): GlobeMapColumns<GlobeMapCategoricalColumns> {
let categorical = dataView && dataView.categorical;
let categories = categorical && categorical.categories || [];
let values = categorical && categorical.values || <DataViewValueColumns>[];
return categorical && _.mapValues(
new this<DataViewCategoryColumn & DataViewValueColumn[] & DataViewValueColumns>(),
(n, i) => categories.filter(x => x.source.roles && x.source.roles[i])[0]
|| values.source && values.source.roles && values.source.roles[i] && values
|| values.filter(x => x.source.roles && x.source.roles[i]));
}