From 80d9f6b59b8e54ea2de82fc5e11be2de36400cc8 Mon Sep 17 00:00:00 2001 From: zhengzhijie Date: Thu, 11 Jun 2026 14:32:03 +0800 Subject: [PATCH] feat(sheets): add counta to chart aggregateType enum Add `counta` (count non-empty cells, incl. text) to manage_chart_object dim2.series[].aggregateType in the chart flag schema. `count` only counts numeric cells, so counting occurrences of a text/category column renders an empty chart; `counta` enables category frequency counts. Synced from the sheet-skill-spec canonical schema. --- shortcuts/sheets/data/flag-schemas.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/shortcuts/sheets/data/flag-schemas.json b/shortcuts/sheets/data/flag-schemas.json index 53b35eb4a..7e2a73649 100644 --- a/shortcuts/sheets/data/flag-schemas.json +++ b/shortcuts/sheets/data/flag-schemas.json @@ -1730,11 +1730,12 @@ }, "aggregateType": { "type": "string", - "description": "汇总方式,默认为'sum',仅在 aggregate 为 true 时生效", + "description": "汇总方式,默认为'sum',仅在 aggregate 为 true 时生效。count 只统计数值单元格;counta 统计所有非空单元格(含文本),按文本/分类列统计出现次数(如各类别的数量、频次分布)时用 counta。", "enum": [ "sum", "average", "count", + "counta", "min", "max", "median" @@ -2765,11 +2766,12 @@ }, "aggregateType": { "type": "string", - "description": "汇总方式,默认为'sum',仅在 aggregate 为 true 时生效", + "description": "汇总方式,默认为'sum',仅在 aggregate 为 true 时生效。count 只统计数值单元格;counta 统计所有非空单元格(含文本),按文本/分类列统计出现次数(如各类别的数量、频次分布)时用 counta。", "enum": [ "sum", "average", "count", + "counta", "min", "max", "median"