diff --git a/components/dashboard/Chart.tsx b/components/dashboard/Chart.tsx index f24b5ce..8e4938d 100644 --- a/components/dashboard/Chart.tsx +++ b/components/dashboard/Chart.tsx @@ -3,8 +3,6 @@ import { useState, useMemo, useRef, useCallback, useEffect } from 'react' import { useTheme } from '@ciphera-net/ui' import { AreaChart as VisxAreaChart, Area as VisxArea, Grid as VisxGrid, XAxis as VisxXAxis, YAxis as VisxYAxis, ChartTooltip as VisxChartTooltip, type TooltipRow } from '@/components/ui/area-chart' -import { BarChart as VisxBarChart, Bar as VisxBar, Grid as VisxBarGrid, BarXAxis as VisxBarXAxis, BarValueAxis as VisxBarYAxis, ChartTooltip as VisxBarChartTooltip } from '@/components/ui/bar-chart' -import { ChartLine, ChartBar } from '@phosphor-icons/react' import { Card, CardContent, CardHeader } from '@/components/ui/card' import { formatNumber, formatDuration, formatUpdatedAgo, DatePicker } from '@ciphera-net/ui' import { Select, DownloadIcon, PlusIcon, XIcon } from '@ciphera-net/ui' @@ -134,7 +132,6 @@ export default function Chart({ onDeleteAnnotation, }: ChartProps) { const [metric, setMetric] = useState('visitors') - const [chartType, setChartType] = useState<'area' | 'bar'>('area') const chartContainerRef = useRef(null) const { resolvedTheme } = useTheme() const [showComparison, setShowComparison] = useState(false) @@ -395,23 +392,6 @@ export default function Chart({ /> ) : null} -
- - -
-