rename scatter render func

This commit is contained in:
Colin Megill
2018-03-01 11:43:08 -08:00
parent 1441a4c7f0
commit 5501abfe3c
2 changed files with 3 additions and 4 deletions
@@ -63,7 +63,7 @@ export const drawScatterplotCanvasUsingRenderQueue = (
const _currentCellSelectionMap = _.keyBy(currentCellSelection, "CellName"); /* move me to the reducer */
const _renderLinesWithFunctionReturnedByQueue = renderQueue(
const _renderScatterplotWithFunctionReturnedByQueue = renderQueue(
drawScatterplotCanvas(
context,
xScale,
@@ -77,8 +77,8 @@ export const drawScatterplotCanvasUsingRenderQueue = (
)
)
_renderLinesWithFunctionReturnedByQueue(expression.data.cells)
return _renderLinesWithFunctionReturnedByQueue;
_renderScatterplotWithFunctionReturnedByQueue(expression.data.cells)
return _renderScatterplotWithFunctionReturnedByQueue;
}
@@ -94,7 +94,6 @@ class Scatterplot extends React.Component {
nextProps.scatterplotXXaccessor &&
nextProps.scatterplotYYaccessor
) {
console.log('expression in scatterplot: ', nextProps)
const xScale = d3.scaleLinear()
.domain(d3.extent(nextProps.expression.data.cells, (cell, i) => {
return cell.e[nextProps.expression.data.genes.indexOf(nextProps.scatterplotXXaccessor)]