"use client"; import React from "react"; import { useTheme } from "next-themes"; import { colors } from "@/lib/colors"; import { useConfig } from "@/hooks/use-config"; import { ComposedChart, Line, Area, Bar, XAxis, YAxis, CartesianGrid, Tooltip, Legend, Scatter, ResponsiveContainer, } from "recharts"; const ReScatterAndLineOfBestFit = ({ height = 300 }) => { const [config] = useConfig(); const { theme: mode } = useTheme(); const data = [ { index: 10000, red: 1643, blue: 790 }, { index: 1666, red: 182, blue: 42 }, { index: 625, red: 56, blue: 11 }, { index: 300, redLine: 0 }, { index: 10000, redLine: 1522 }, { index: 600, blueLine: 0 }, { index: 10000, blueLine: 678 }, ]; const CustomTooltip = ({ active, payload }: any) => { if (active && payload) { return (
{`${payload[0].name}`} : {`${payload[0].value}%`}
); } return null; }; return ( {value}} /> ); }; export default ReScatterAndLineOfBestFit;