UNPKG

lucid-ui

Version:

A UI component library from AppNexus.

24 lines (23 loc) 675 B
/* eslint-disable comma-spacing */ import React from 'react'; import createClass from 'create-react-class'; import { PieChart, chartConstants } from '../../../index'; const data = [ { x: 'Leslie', y: 100 }, { x: 'Tom', y: 20 }, { x: 'Ron', y: 10 }, { x: 'Ann', y: 30 }, { x: 'Tammy', y: 40 }, ]; const style = { paddingTop: '4rem', }; export default createClass({ render() { return (React.createElement("div", { style: style }, React.createElement(PieChart, { data: data, colorMap: { Tammy: chartConstants.COLOR_BAD, Leslie: chartConstants.COLOR_GOOD, } }))); }, });