diff --git a/app/(app)/analytics/devices/page.tsx b/app/(app)/analytics/devices/page.tsx index 6d7779f..4f8ab74 100644 --- a/app/(app)/analytics/devices/page.tsx +++ b/app/(app)/analytics/devices/page.tsx @@ -1,7 +1,6 @@ "use client"; import { useState, useEffect, useRef } from 'react'; -import { fetchData } from '@/app/api/utils'; import { DeviceAnalytics } from '@/app/api/types'; import { Chart, PieController, ArcElement, Tooltip, Legend, CategoryScale, LinearScale } from 'chart.js'; @@ -91,7 +90,7 @@ export default function DeviceAnalyticsPage() { legend: { position: 'bottom', labels: { - color: 'white' + color: 'currentColor' } }, tooltip: { @@ -132,7 +131,7 @@ export default function DeviceAnalyticsPage() { legend: { position: 'bottom', labels: { - color: 'white' + color: 'currentColor' } }, tooltip: { @@ -173,7 +172,7 @@ export default function DeviceAnalyticsPage() { legend: { position: 'bottom', labels: { - color: 'white' + color: 'currentColor' } }, tooltip: { @@ -211,27 +210,27 @@ export default function DeviceAnalyticsPage() {
Analyze visitor distribution by devices, browsers, and operating systems
+Analyze visitor distribution by devices, browsers, and operating systems
No device data available
Analyze visitor distribution by location
+Analyze visitor distribution by location
| Location | -Visits | -Unique Visitors | -Percentage | +Location | +Visits | +Unique Visitors | +Percentage |
|---|---|---|---|---|---|---|---|
| + | {item.location} | -+ | {item.visits} | -+ | {item.visitors} |
-
+ {item.percentage.toFixed(1)}%
+
|