import { motion } from "framer-motion"; import { BarChart, Bar, XAxis, YAxis, CartesianGrid, Tooltip, ResponsiveContainer, PieChart, Pie, Cell, } from "recharts"; const zoneData = [ { zone: "Z1", infestation: 12 }, { zone: "Z2", infestation: 28 }, { zone: "Z3", infestation: 8 }, { zone: "Z4", infestation: 35 }, { zone: "Z5", infestation: 22 }, { zone: "Z6", infestation: 18 }, { zone: "Z7", infestation: 42 }, { zone: "Z8", infestation: 15 }, { zone: "Z9", infestation: 9 }, ]; const weedTypes = [ { name: "Amaranthus", value: 35, color: "hsl(0, 65%, 50%)" }, { name: "Cyperus", value: 25, color: "hsl(30, 80%, 50%)" }, { name: "Echinochloa", value: 20, color: "hsl(45, 90%, 50%)" }, { name: "Digitaria", value: 12, color: "hsl(145, 50%, 40%)" }, { name: "Other", value: 8, color: "hsl(200, 40%, 50%)" }, ]; const AnalyticsPanel = () => (

Analytics Dashboard

{/* Bar chart */}

Infestation Rate by Zone (%)

{/* Pie chart */}

Weed Species Distribution

{weedTypes.map((entry, index) => ( ))}
{weedTypes.map((w) => (
{w.name} ({w.value}%)
))}
); export default AnalyticsPanel;