How to use the react-chartjs-2.Pie 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,
        'Legend Handlers Example'
      ),
      _react2.default.createElement(
        'p',
        null,
        'Hover over label and click'
      ),
      _react2.default.createElement(_reactChartjs.Pie, { data: data, legend: this.state.legend })
    );
  }
});