fix(cps): 详情页折线点大小用 style.r(sizeField 是字段映射不能给常量)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -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: '次数' } },
|
||||
|
||||
Reference in New Issue
Block a user