Skip to content

react-d3 shapes, such as line, scatter, bar, bar stack ... and more.

Notifications You must be signed in to change notification settings

react-d3/react-d3-shape

Folders and files

NameName
Last commit message
Last commit date
Jul 11, 2016
Jul 22, 2016
Mar 3, 2016
Dec 13, 2015
Apr 7, 2016
Mar 2, 2016
Mar 2, 2016
Jul 22, 2016
Jul 22, 2016
Jul 22, 2016
Mar 2, 2016
Mar 2, 2016

Repository files navigation

react-d3-shape

Dependency Status

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= {this.state.width}
    height= {this.state.height}
    data= {generalChartData}
    chartSeries= {this.state.series}
    x= {x}
    >
    <Line
      chartSeries= {this.state.series}
    />
    <Area
      chartSeries= {this.state.series2}
    />
    <Scatter
      chartSeries= {this.state.series2}
    <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

About

react-d3 shapes, such as line, scatter, bar, bar stack ... and more.

Resources

Stars

Watchers

Forks

Packages

No packages published