react-chartjs
react-chartjs copied to clipboard
common react charting components using chart.js
Chart.js supports horizontalBar charts as of lately, see: http://jsfiddle.net/3xts05xu/ But it's impossible to pass `horizontalBar` type, because type gets lowercased on this line: https://github.com/jhudson8/react-chartjs/blob/chartjs-v2/lib/core.js#L76 What is the purpose behind `.lowercase()`?...
I've tried utilizing the legendTemplate chart option and the tooltipTemplate chart option but neither seem to be working for me. I've even tried modifying the example code to utilize non-existent...
Found a bug while starting my node server ``` ReferenceError: window is not defined at /home/xxxx/xxxx/node_modules/chart.js/src/core/core.helpers.js:584:10 at module.exports (/home/xxxx/xxxx/node_modules/chart.js/src/core/core.helpers.js:592:4) at Object. (/home/xxxx/xxxx/node_modules/chart.js/src/chart.js:6:31) at Module._compile (module.js:541:32) at Module._extensions..js (module.js:550:10) at Object.require.extensions.(anonymous...
I want to get elements by click events. I can get elements: ``` js const App = React.createClass({ handleClick(e) { const chart = this.Bar.getChart() chart.getElementAtEvent(e) }, render() { return (...
I am trying to render some chart on modal box, but its not working. I have checked in dom canvas is there but chart is not displaying . I am...
I installed per instructions. In my code I import as follows: import { RadarChart } from 'react-chartjs'; My dependencies in package.json (webpack) include: ``` "chart.js": "^1.1.1", "react": "^0.14.8", "react-chartjs": "^0.7.3",...
Is it possible to use this library to make a chart similar to this:  Additionally, can I colour the bars differently depending on whether or...
https://github.com/jhudson8/react-chartjs/blob/master/lib/core.js#L64 I'm having some issues where `this.state.chart` doesn't exist and is causing errors to be spewed all over, noticed this while checking things out. I don't think direct assignment of...
# Background There is two way to update datasets of a chart. 1. Set a new datasets by `this.setState` 2. Update the `this.state.datasets` and call `this.forceUpdate` 1 works well only...