From 472912560c3f0743201b15193a5f1bc89b75d6a8 Mon Sep 17 00:00:00 2001 From: marco Date: Wed, 17 Jun 2026 23:06:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(cps):=20=E8=AF=A6=E6=83=85=E9=A1=B5?= =?UTF-8?q?=E6=8A=98=E7=BA=BF=E7=82=B9=E5=A4=A7=E5=B0=8F=E7=94=A8=20style.?= =?UTF-8?q?r(sizeField=20=E6=98=AF=E5=AD=97=E6=AE=B5=E6=98=A0=E5=B0=84?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E7=BB=99=E5=B8=B8=E9=87=8F)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 --- src/app/(main)/cps/groups/[id]/page.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/(main)/cps/groups/[id]/page.tsx b/src/app/(main)/cps/groups/[id]/page.tsx index f8e00e9..c2760c5 100644 --- a/src/app/(main)/cps/groups/[id]/page.tsx +++ b/src/app/(main)/cps/groups/[id]/page.tsx @@ -94,7 +94,9 @@ export default function GroupDetailPage() { colorField: '指标', height: 420, legend: { color: { position: 'top' as const } }, - point: { sizeField: 3, shapeField: 'circle' }, + // 折线带数据点(每桶一个);大小用 style.r 固定 —— sizeField/shapeField 是数据字段映射, + // 给常量会被 G2 当字段名找而失效。 + point: { style: { r: 3 } }, // y 轴恒从 0 起、上限自适应取整;CPS 数据量小,固定 0 基线对比更直观。 scale: { y: { domainMin: 0, nice: true } }, axis: { x: { title: range === 'h' ? '小时' : '日期' }, y: { title: '次数' } },