{t("title")}
{t("subtitle")}
{t("membersMap")}
{t("demoHint")}
"use client"; import { useTheme } from "@/app/context/ThemeContext"; import { useLocale, useTranslation } from "@/i18n/navigation"; import { Link } from "@/i18n/navigation"; import { MembersMap, BarChart, PieChart, LineChart } from "@/app/lib/charts"; import { MAP_CITIES } from "@/app/data/map-cities"; // 演示数据 const getCityBarData = (locale: "zh" | "en") => [...MAP_CITIES] .sort((a, b) => b.nomadsNow - a.nomadsNow) .slice(0, 10) .map((c) => ({ name: locale === "zh" ? c.name : c.nameEn, value: c.nomadsNow })); const REGION_PIE_DATA = [ { name: "华东", value: 3200 }, { name: "华南", value: 1800 }, { name: "西南", value: 2100 }, { name: "华北", value: 1200 }, { name: "其他", value: 700 }, ]; const GROWTH_LINE_DATA = { xAxis: ["1月", "2月", "3月", "4月", "5月", "6月"], series: [ { name: "新增成员", data: [320, 480, 520, 610, 720, 850] }, { name: "活跃城市", data: [12, 14, 15, 16, 17, 18] }, ], }; export default function DataReportPage() { const { t } = useTranslation("dataReport"); const locale = useLocale(); const { theme } = useTheme(); const dark = theme === "dark"; return (
{t("subtitle")}
{t("demoHint")}