How to use the react-chartjs-2.Doughnut 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,
								'Doughnut Example'
						),
						_react2.default.createElement(_reactChartjs.Doughnut, { data: data })
				);
		}
});
github promethe42 / cocorico / app / src / script / page / BallotBox.jsx View on Github external
var React = require('react');
var ReactBootstrap = require('react-bootstrap');
var ReactIntl = require('react-intl');
var Reflux = require('reflux');
var classNames = require('classnames');
var Base64 = require('js-base64').Base64;
var jwtDecode = require('jwt-decode');
var DoughnutChart = require('react-chartjs-2').Doughnut;
var dateFormat = require('dateformat');

var StringHelper = require('../helper/StringHelper');

var TransactionStore = require('../store/TransactionStore'),
  VoteStore = require('../store/VoteStore'),
  ProofOfVoteStore = require('../store/ProofOfVoteStore');

var BallotAction = require('../action/BallotAction'),
  VoteAction = require('../action/VoteAction'),
  ProofOfVoteAction = require('../action/ProofOfVoteAction');

var LoadingIndicator = require('../component/LoadingIndicator'),
  Title = require('../component/Title'),
  Icon = require('../component/Icon'),
  QRCodeReader = require('../component/QRCodeReader'),