This is a fork of react-c3js adopted for billboard.js
React component for billboard.js
import BillboardChart from 'react-billboard.js';
import 'billboard/billboard.css';
const data = {
columns: [
['data1', 30, 200, 100, 400, 150, 250],
['data2', 50, 20, 10, 40, 15, 25]
]
};
const mountNode = document.getElementById('react-billboardjs');
ReactDOM.render(<BillboardChart data={data} />, mountNode);
You can see the docs
for more details.
$ npm install --save react-billboard.js
Please feel free to add pull requests.
- Modify
src/index.js
. - Build the lib by using
npm run build
- Import BillboardChart from react-billboard.js.
- Enjoy the result.
Check out billboard.js Reference for more details.
MIT