import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import { BarChart, Bar, AreaChart, Area, LineChart, Line, PieChart, Pie, Cell } from 'recharts'; import { data1, data2 } from 'ba-api/chartMiniData'; import colorfull from 'ba-api/colorfull'; import { red, blue, cyan, lime } from '@material-ui/core/colors'; import { Grid } from '@material-ui/core'; import CounterWidget from '../Counter/CounterWidget'; import styles from './widget-jss'; const colors = [red[300], blue[300], cyan[300], lime[300]]; class CounterGroupWidget extends PureComponent { render() { const { classes } = this.props; return (