diff --git a/src/reducers/controls.js b/src/reducers/controls.js index 09981426..e318edf5 100644 --- a/src/reducers/controls.js +++ b/src/reducers/controls.js @@ -12,6 +12,8 @@ const Controls = (state = { opacityForDeselectedCells: .2, graphBrushSelection: null, continuousSelection: null, + scatterplotXXaccessor: null, // just easier to read + scatterplotYYaccessor: null, axesHaveBeenDrawn: false, __storedStateForCelllist1__: null, /* will need procedural control of brush ie., brush.extent https://bl.ocks.org/micahstubbs/3cda05ca68cba260cb81 */ __storedStateForCelllist2__: null, @@ -134,6 +136,17 @@ const Controls = (state = { return Object.assign({}, state, { __storedStateForCelllist1__: action.data }); + /******************************* + Scatterplot + *******************************/ + case "set scatterplot x": + return Object.assign({}, state, { + scatterplotXXaccessor: action.data + }); + case "set scatterplot y": + return Object.assign({}, state, { + scatterplotYYaccessor: action.data + }); default: return state; }