'use client' // Next Imports import dynamic from 'next/dynamic' // MUI Imports import Box from '@mui/material/Box' import Card from '@mui/material/Card' import Divider from '@mui/material/Divider' import CardHeader from '@mui/material/CardHeader' import Typography from '@mui/material/Typography' import CardContent from '@mui/material/CardContent' // Component Imports import { Radar, Tooltip, PolarGrid, RadarChart, PolarAngleAxis, PolarRadiusAxis, ResponsiveContainer } from '@/libs/Recharts' import type { TooltipProps } from '@/libs/Recharts' // Styled Component Imports const AppRecharts = dynamic(() => import('@/libs/styles/AppRecharts')) // Vars const data = [ { subject: 'Battery', 'iPhone 11': 41, 'Samsung s20': 65 }, { subject: 'Brand', 'iPhone 11': 64, 'Samsung s20': 46 }, { subject: 'Camera', 'iPhone 11': 81, 'Samsung s20': 42 }, { subject: 'Memory', 'iPhone 11': 60, 'Samsung s20': 25 }, { subject: 'Storage', 'iPhone 11': 42, 'Samsung s20': 58 }, { subject: 'Display', 'iPhone 11': 42, 'Samsung s20': 63 }, { subject: 'OS', 'iPhone 11': 33, 'Samsung s20': 76 }, { subject: 'Price', 'iPhone 11': 23, 'Samsung s20': 43 } ] const CustomTooltip = (props: TooltipProps) => { // Props const { active, payload } = props if (active && payload) { return (
{props.label} {props && props.payload && props.payload.map((i: any) => { return ( {`${i.dataKey} : ${i.payload[i.dataKey]}`} ) })}
) } return null } const RechartsRadarChart = () => { return (
iPhone 11 Samsung s20
) } export default RechartsRadarChart