Closed OddEssay closed 7 years ago
Can we merge this, please?
Thanks for taking care of this @austinpray ! When can we expect a new release on npm with this fix?
published as 2.0.0-beta1
Thanks for publishing it. npm
still shows 0.8.0 though. This is the one, right?
https://www.npmjs.com/package/react-chartjs
@achanda you can install the specific version with npm install react-chartjs@2.0.0-beta1
which does in fact have these changes, however I still couldn't render a horizontal bar chart.
To do so, I had to add the export to index.js
:
module.exports = {
Bar: require('./lib/bar'),
HorizontalBar: require('./lib/horizontal-bar'),
...
Edit: Just opened a pull request https://github.com/reactjs/react-chartjs/pull/179
This adds
horizontalBar
as an available type of chart.There is a small refactor to the way the
type
passed into chart.js to account for more that can be covered by a simple ternary assignment.