lucid-ui
Version:
A UI component library from AppNexus.
36 lines • 675 B
JavaScript
/* eslint-disable comma-spacing */
import React from 'react';
import createClass from 'create-react-class';
import { PieChart, chartConstants } from '../../../index';
var data = [{
x: 'Leslie',
y: 100
}, {
x: 'Tom',
y: 20
}, {
x: 'Ron',
y: 10
}, {
x: 'Ann',
y: 30
}, {
x: 'Tammy',
y: 40
}];
var style = {
paddingTop: '4rem'
};
export default createClass({
render: function render() {
return /*#__PURE__*/React.createElement("div", {
style: style
}, /*#__PURE__*/React.createElement(PieChart, {
data: data,
colorMap: {
Tammy: chartConstants.COLOR_BAD,
Leslie: chartConstants.COLOR_GOOD
}
}));
}
});