import React from 'react'; import PropTypes from 'prop-types'; import { createMuiTheme, withStyles } from '@material-ui/core/styles'; import ThemePallete from 'ba-api/themePalette'; import { AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip, ResponsiveContainer } from 'recharts'; import { green } from '@material-ui/core/colors'; import { data1 } from './sampleData'; const theme = createMuiTheme(ThemePallete.purpleTheme); const color = ({ primary: theme.palette.primary.main, primarydark: theme.palette.primary.dark, secondary: theme.palette.secondary.main, secondarydark: theme.palette.secondary.dark, third: green[500], thirddark: green[900], }); const styles = { chartFluid: { width: '100%', height: 450 } }; function AreaResponsive(props) { const { classes } = props; return (
); } AreaResponsive.propTypes = { classes: PropTypes.object.isRequired, }; export default withStyles(styles)(AreaResponsive);