From e4cd873b21ad7610318fbefc7134fd68c1b4a9a5 Mon Sep 17 00:00:00 2001 From: Colin Megill Date: Thu, 16 Aug 2018 10:07:08 -0400 Subject: [PATCH] better positioning of continuous paintbrushes --- .../components/continuous/histogramBrush.js | 34 +++++++++++-------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/client/src/components/continuous/histogramBrush.js b/client/src/components/continuous/histogramBrush.js index 13e21dc5..85ee5ed7 100644 --- a/client/src/components/continuous/histogramBrush.js +++ b/client/src/components/continuous/histogramBrush.js @@ -9,6 +9,7 @@ import _ from "lodash"; import { connect } from "react-redux"; import FaPaintBrush from "react-icons/lib/fa/paint-brush"; import * as globals from "../../globals"; +import * as d3 from "d3"; @connect(state => { const initializeRanges = _.get(state, "initialize.data.data.ranges", null); @@ -155,9 +156,23 @@ class HistogramBrush extends React.Component { render() { return (
+ { + this.drawHistogram(svgRef); + }} + > + {this.props.ranges.min} + {" to "} + {this.props.ranges.max} + - { - this.drawHistogram(svgRef); - }} - > - {this.props.ranges.min} - {" to "} - {this.props.ranges.max} -
); }