Socket
Book a DemoInstallSign in
Socket

react-d3-shape

Package Overview
Dependencies
Maintainers
3
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-d3-shape

react shape component

latest
npmnpm
Version
0.3.25
Version published
Maintainers
3
Created
Source

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

FAQs

Package last updated on 22 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts