Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render: function render() {
return _react2.default.createElement(
'div',
null,
_react2.default.createElement(
'h2',
null,
'Mixed data Example'
),
_react2.default.createElement(_reactChartjs.Bar, {
data: data,
options: options,
plugins: plugins
})
);
}
});
var React = require('react');
var Reflux = require('reflux');
var BarChart = require('react-chartjs-2').Bar;
var StringHelper = require('../helper/StringHelper');
var VoteStore = require('../store/VoteStore');
var VoteAction = require('../action/VoteAction');
var LoadingIndicator = require('./LoadingIndicator');
var VoteResultBarChart = React.createClass({
mixins: [
Reflux.connect(VoteStore, 'votes'),
],
componentWillMount: function() {