move clear rect up to scatterplot, since drawscatterplot is now per cell

This commit is contained in:
Colin Megill
2018-03-01 10:40:17 -08:00
parent 2d3d8be744
commit aa0ae5946f
@@ -74,6 +74,8 @@ class Scatterplot extends React.Component {
this.state.xScale &&
this.state.yScale
) {
/* clear canvas */
this.state.ctx.clearRect(0, 0, width, height);
drawScatterplotCanvas(
this.state.ctx,
this.state.xScale,