react-d3-shape
react-d3 basic shapes, shapes that we support:
- Line
- Area
- AreaStack
- BarGroupHorizontal
- BarGroup
- BarStackHorizontal
- BarStack
- BarHorizontal
- Bar
- Pie
- Scatter
Install
npm install --save react-d3-shape
Quick example
Building Line Chart, with Area Chart and Scatter Plot
- Line Chart with Area chart
<div> <Chart width= thisstatewidth height= thisstateheight data= generalChartData chartSeries= thisstateseries x= x > <Line chartSeries= thisstateseries /> <Area chartSeries= thisstateseries2 /> <Scatter chartSeries= thisstateseries2 <Xaxis/> <Yaxis/> <Xgrid/> <Ygrid/> </Chart></div>
Develop
$ sudo npm i
$ node devServer.js
and open localhost:5000/example
Build production js
, min.js
code
$ npm run prod
License
Apache 2.0