diff --git a/client/src/components/brushableHistogram/index.js b/client/src/components/brushableHistogram/index.js index 657703bf..ff83ac99 100644 --- a/client/src/components/brushableHistogram/index.js +++ b/client/src/components/brushableHistogram/index.js @@ -146,7 +146,7 @@ class HistogramBrush extends React.Component { dispatch({ type: "color by continuous metadata", colorAccessor: field, - rangeMaxForColorAccessor: ranges.max + rangeForColorAccessor: ranges }); } else if (world.varData.hasCol(field)) { dispatch(actions.requestSingleGeneExpressionCountsForColoringPOST(field)); diff --git a/client/src/components/continuous/continuous.js b/client/src/components/continuous/continuous.js index 10656d9b..7ec7e464 100644 --- a/client/src/components/continuous/continuous.js +++ b/client/src/components/continuous/continuous.js @@ -33,7 +33,7 @@ class Continuous extends React.Component { dispatch({ type: "color by continuous metadata", colorAccessor: key, - rangeMaxForColorAccessor: summary.max + rangeForColorAccessor: summary }); }; } diff --git a/client/src/middleware/updateCellColors.js b/client/src/middleware/updateCellColors.js index 7d5a3e3c..3edecdc3 100644 --- a/client/src/middleware/updateCellColors.js +++ b/client/src/middleware/updateCellColors.js @@ -82,7 +82,7 @@ const updateCellColorsMiddleware = store => next => action => { if (action.type === "color by continuous metadata") { const colorBins = 100; - const [min, max] = [0, action.rangeMaxForColorAccessor]; + const { min, max } = action.rangeForColorAccessor; colorScale = d3 .scaleQuantile() .domain([min, max])