React wrapper for d3.js
npm install --save react-d3-graphs
# or
yarn add react-d3-graphs
import { Bar } from 'react-d3-graphs';
<Bar width={300} height={400} barColor="#fff" bgColor="#234f22" data={ [ {value: 10}, {value:20} ] } />
width: number;
height: number;
data: Array[{ value: string }];
barColor: string;
bgColor: string;
Type number
Default: undefined
width of the graph
Type number
Default: undefined
height of the graph
Type: Array of values
Default: undefined
An array of values for the graph
Type: string
Default: #000000
Color of the bar and text in hex
Type: string
Default: #000000
Color of the background in hex