better ordinal scale

This commit is contained in:
Colin Megill
2018-04-17 11:34:51 -07:00
parent a818b6bbe7
commit 598bdc2fa6
2 changed files with 23 additions and 1 deletions
+3 -1
View File
@@ -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(