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