graph now renders from global cell selection, significant perf boost

This commit is contained in:
Colin Megill
2017-11-27 03:14:10 -08:00
parent bfa03e77b4
commit 1b72e8dab3
3 changed files with 26 additions and 9 deletions
+7
View File
@@ -48,6 +48,13 @@ const Controls = (state = {
return Object.assign({}, state, {
graphBrushSelection: null
})
case "color changed":
return Object.assign({}, state, {
colorAccessor: action.colorAccessor,
colorScale: d3.scaleLinear()
.domain([0, action.rangeMaxForColorAccessor])
.range([1,0])
});
default:
return state;
}