From fbfef737e35ed4943df55e84505640d6eb54c09d Mon Sep 17 00:00:00 2001 From: Determinant Date: Tue, 19 Feb 2019 18:35:36 -0500 Subject: add donut pic --- src/Donut.tsx | 160 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/tab.tsx | 29 +++++++++-- 2 files changed, 184 insertions(+), 5 deletions(-) create mode 100644 src/Donut.tsx (limited to 'src') diff --git a/src/Donut.tsx b/src/Donut.tsx new file mode 100644 index 0000000..00d472a --- /dev/null +++ b/src/Donut.tsx @@ -0,0 +1,160 @@ +import React from 'react'; +import { withStyles } from '@material-ui/core/styles'; +const styles = { + st0: {fill: '#F9CC8A'}, + st2: {fill: '#C0E5E0'}, + st3: {fill: '#FFFFFF'}, + st4: {fill: '#8B5E3C'}, + st5: {fill: '#FBD015'}, + st6: {fill: '#F69D98'}, +}; + +function Donut(props: { + style: {[key: string]: string | number }, + classes: { + st0: string, + st2: string, + st3: string, + st4: string, + st5: string, + st6: string, + }}) { + let {st0, st2, st3, st4, st5, st6 } = props.classes; + return ( + + + ); +} + +export default withStyles(styles)(Donut); diff --git a/src/tab.tsx b/src/tab.tsx index 5777dbe..727a3a5 100644 --- a/src/tab.tsx +++ b/src/tab.tsx @@ -10,6 +10,7 @@ import Grid from '@material-ui/core/Grid'; import CircularProgress from '@material-ui/core/CircularProgress'; import Logo from './Logo'; +import Donut from './Donut'; import { theme } from './theme'; import { StyledPatternPieChart } from './Chart'; import { MsgType, MsgClient } from './msg'; @@ -116,11 +117,29 @@ class Tab extends React.Component { radialLabelsLinkDiagonalLength={40} labelFontSize={14} padAngle={0.8} /> - - ) || - - No matching events. - } + ) || +
+ +
+ + No matching events. + +
+
} ))) || (
-- cgit v1.2.3-70-g09d2