mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-26 21:38:11 +08:00
fixed scatterplot infinite render (#429)
* add more to state from componentDidMount * always brush * destructure * move render to function * fixed scatterplot infinite render * remove logging
This commit is contained in:
@@ -215,7 +215,12 @@ class HistogramBrush extends React.Component {
|
||||
d3.select(svgRef)
|
||||
.append("g")
|
||||
.attr("class", "brush")
|
||||
.call(d3.brushX().on("end", this.onBrush(field, x.invert).bind(this)));
|
||||
.call(
|
||||
d3
|
||||
.brushX()
|
||||
.on("brush", this.onBrush(field, x.invert).bind(this))
|
||||
.on("end", this.onBrush(field, x.invert).bind(this))
|
||||
);
|
||||
|
||||
/* AXIS */
|
||||
d3.select(svgRef)
|
||||
|
||||
Reference in New Issue
Block a user