d3-react-container
Maintainer
Installation
npm install d3-react-container
Usage
Using NPM
1 . Require d3-react-container after installation
2 . Add parent element = "html element" to D3Container component
<D3Container ="div" />
3 . Include d3 implementation in D3Callback props
<D3Container ="div" =
Options
props | Type | Description | Default Value |
---|---|---|---|
element | String | HTML element | 'div' |
D3Callback | Function | D3 Implementation | (selection)=> {} |
Example of using d3-react-container:
import D3Container from 'd3-react-container' <D3Container ="div" =
Contributing
We welcome your contribution! Fork the repo, make some changes, submit a pull-request!.
License
none