How to use the react-chartjs-2.Bar function in react-chartjs-2

To help you get started, we’ve selected a few react-chartjs-2 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jerairrest / react-chartjs-2 / example.js View on Github external
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
      })
    );
  }
});
github promethe42 / cocorico / app / src / script / component / VoteResultBarChart.jsx View on Github external
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() {