react-chart-histogram

0.2.4 • Public • Published

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>
  )
}

See it in action!

Package Sidebar

Install

npm i react-chart-histogram

Weekly Downloads

171

Version

0.2.4

License

MIT

Unpacked Size

164 kB

Total Files

9

Last publish

Collaborators

  • rodrigoap