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: '次数' } },