mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-29 15:58:11 +08:00
correctly handle categoricals that are not strings (#1346)
This commit is contained in:
@@ -101,7 +101,7 @@ class Occupancy extends React.PureComponent {
|
||||
const groupBy = world.obsAnnotations.col(metadataField);
|
||||
const occupancyMap = world.obsAnnotations
|
||||
.col(colorAccessor)
|
||||
.histogram(groupBy);
|
||||
.histogramCategorical(groupBy);
|
||||
|
||||
const occupancy = occupancyMap.get(category.categoryValues[categoryIndex]);
|
||||
|
||||
@@ -117,7 +117,7 @@ class Occupancy extends React.PureComponent {
|
||||
|
||||
let currentOffset = 0;
|
||||
const dfColumn = world.obsAnnotations.col(colorAccessor);
|
||||
const categoryValues = dfColumn.summarize().categories;
|
||||
const categoryValues = dfColumn.summarizeCategorical().categories;
|
||||
|
||||
let o;
|
||||
let scaledValue;
|
||||
|
||||
Reference in New Issue
Block a user