react-d3-brush
Version:
react-d3 brush implementation
18 lines (15 loc) • 322 B
JSX
;
const width = 960;
const height = 500;
const margins = {top: 80, right: 100, bottom: 80, left: 100};
const brushHeight = 200;
export default {
width: width,
height: height,
margins: margins,
y: (d) => {return +d;},
xScale: 'linear',
yScale: 'linear',
brushHeight: brushHeight,
chartId: 0
}