react-chart-histogram
v0.2.4
Published
ReactJS Simple Histogram Chart Canvas
Downloads
599
Maintainers
Readme
react-chart-histogram
Install
yarn add react-chart-histogram
Usage
import Histogram from 'react-chart-histogram';
...
render() {
const labels = ['2016', '2017', '2018'];
const data = [324, 45, 672];
const options = { fillColor: '#FFFFFF', strokeColor: '#0000FF' };
return (
<div>
<Histogram
xLabels={labels}
yValues={data}
width='400'
height='200'
options={options}
/>
</div>
)
}