|
| 1 | +import React from 'react' |
| 2 | +import LineChart from './LineChart' |
| 3 | +import AreaChart from './AreaChart' |
| 4 | +import { useTheme, Box, styled } from '@mui/system' |
| 5 | +import DoughnutChart from './Doughnut' |
| 6 | +import ComparisonChart from './ComparisonChart' |
| 7 | +import SimpleCard from 'app/components/cards/SimpleCard' |
| 8 | +import Breadcrumb from 'app/components/Breadcrumb/Breadcrumb' |
| 9 | + |
| 10 | +const Container = styled('div')(({ theme }) => ({ |
| 11 | + margin: '30px', |
| 12 | + [theme.breakpoints.down('sm')]: { |
| 13 | + margin: '16px', |
| 14 | + }, |
| 15 | + '& .breadcrumb': { |
| 16 | + marginBottom: '30px', |
| 17 | + [theme.breakpoints.down('sm')]: { |
| 18 | + marginBottom: '16px', |
| 19 | + }, |
| 20 | + }, |
| 21 | +})) |
| 22 | + |
| 23 | +const AppEchart = () => { |
| 24 | + const theme = useTheme() |
| 25 | + return ( |
| 26 | + <Container> |
| 27 | + <div className="breadcrumb"> |
| 28 | + <Breadcrumb |
| 29 | + routeSegments={[ |
| 30 | + { name: 'Charts', path: '/charts' }, |
| 31 | + { name: 'Echarts' }, |
| 32 | + ]} |
| 33 | + /> |
| 34 | + </div> |
| 35 | + |
| 36 | + <SimpleCard title="Doughnut Chart"> |
| 37 | + <DoughnutChart |
| 38 | + height="350px" |
| 39 | + color={[ |
| 40 | + theme.palette.primary.dark, |
| 41 | + theme.palette.primary.main, |
| 42 | + theme.palette.primary.light, |
| 43 | + ]} |
| 44 | + /> |
| 45 | + </SimpleCard> |
| 46 | + <Box sx={{ py: '12px' }} /> |
| 47 | + <SimpleCard title="Line Chart"> |
| 48 | + <LineChart |
| 49 | + height="350px" |
| 50 | + color={[ |
| 51 | + theme.palette.primary.main, |
| 52 | + theme.palette.primary.light, |
| 53 | + ]} |
| 54 | + /> |
| 55 | + </SimpleCard> |
| 56 | + <Box sx={{ py: '12px' }} /> |
| 57 | + <SimpleCard title="Comparison Chart"> |
| 58 | + <ComparisonChart |
| 59 | + height="350px" |
| 60 | + color={[ |
| 61 | + theme.palette.primary.dark, |
| 62 | + // theme.palette.primary.main, |
| 63 | + theme.palette.primary.light, |
| 64 | + ]} |
| 65 | + /> |
| 66 | + </SimpleCard> |
| 67 | + <Box sx={{ py: '12px' }} /> |
| 68 | + <SimpleCard title="Area Chart"> |
| 69 | + <AreaChart |
| 70 | + height="350px" |
| 71 | + color={[theme.palette.primary.main]} |
| 72 | + /> |
| 73 | + </SimpleCard> |
| 74 | + </Container> |
| 75 | + ) |
| 76 | +} |
| 77 | + |
| 78 | +export default AppEchart |
0 commit comments