react-d3-brush
react-d3
brush implementation.
Quick example
With Webpack build tool
- Line Chart
"use strict"; var React = ;var ReactDOM = ;var LineBrush = LineBrush; { var generalChartData = ; var chartSeries = field: 'age' name: 'Age' color: '#ff7f0e' { return dindex; }; ReactDOM}
In HTML (without build tools)
Clone code react-d3-brush.js
or minify js react-d3-brush.min.js
and include the script in your HTML.
You'll also need react
, react-dom
, d3
- Line Chart
Line Chart example
Install
npm install --save react-d3-brush
LIVE DEMO
Support Brush Component
- Line Chart: export as
LineBrush
- Area Stack Chart: export as
AreaStackBrush
- Scatter Plot: export as
ScatterBrush
- Bar Chart: export as
BarBrush
- Bar Stack: export as
BarStackBrush
- Bar Group: export as
BarGroupBrush
Gallery
License
Apache 2.0