mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-29 17:58:12 +08:00
better ordinal scale
This commit is contained in:
@@ -52,7 +52,9 @@ const updateCellSelectionMiddleware = (store) => {
|
||||
|
||||
if (action.type === "color by categorical metadata") {
|
||||
|
||||
colorScale = d3.scaleOrdinal(d3.schemeCategory20);
|
||||
|
||||
|
||||
colorScale = d3.scaleOrdinal().range(globals.ordinalColors);
|
||||
|
||||
_.each(currentSelectionWithUpdatedColors, (cell, i) => {
|
||||
currentSelectionWithUpdatedColors[i]["__color__"] = colorScale(
|
||||
|
||||
Reference in New Issue
Block a user