"use client"; import { useTheme } from "next-themes"; import { colors } from "@/lib/colors"; import { useConfig } from "@/hooks/use-config"; import { LineChart, Line, CartesianGrid, XAxis, YAxis, Tooltip, ResponsiveContainer, } from "recharts"; import CustomTooltip from "./custom-tooltip"; const MultiSeriesChart = ({ height = 300 }) => { const { theme: mode } = useTheme(); const series = [ { name: "Series 1", data: [ { category: "A", value: Math.random() }, { category: "B", value: Math.random() }, { category: "C", value: Math.random() }, ], }, { name: "Series 2", data: [ { category: "B", value: Math.random() }, { category: "C", value: Math.random() }, { category: "D", value: Math.random() }, ], }, { name: "Series 3", data: [ { category: "C", value: Math.random() }, { category: "D", value: Math.random() }, { category: "E", value: Math.random() }, ], }, ]; return ( {series.map((s) => ( ))} ); }; export default MultiSeriesChart;