Skip to content

An open source alternative to Tableau. Embeddable visual analytic

feat(explain): display formatting kernel + card/layout redesign

Elwynn Chen54bca2f7fd15
diff --git a/docs/explain-data-worklog.md b/docs/explain-data-worklog.md
index eba845ea..8c13488a 100644
--- a/docs/explain-data-worklog.md
+++ b/docs/explain-data-worklog.md
@@ -111,3 +111,6 @@
| 2026-07-08 | Executor | E-8 | 新增 planSnapshot.test.ts:四类解释器的 workflow payload 快照 + B/D 计划相等断言 + 数值候选 bin 断言;两次运行快照稳定。 |
| 2026-07-08 | Executor | E-9 | UI 接入 candidateLimit / candidateTruncation:截断提示 + "分析更多字段" 按钮(+20 重跑);验证:jest 21 套件 277 测试、tsc 通过。 |
| 2026-07-08 | Kernel | 收口 | M0~M2(阶段一~三)全部完成并提交;全量 jest + tsc + vite build 通过。阶段四(M3 产品层)待用户真实 UI 验收后再评估分工。E-8 的 DuckDB 真机对拍列为 M3 开放项。 |
+| 2026-07-08 | 用户 | 验收 | 纯前端模式功能通过;反馈两点:① 小数格式差(分箱标签浮点全精度泄漏)② 洞察罗列缺乏条理。 |
+| 2026-07-08 | Kernel | K-fmt | 新增 `lib/explain/format.ts`(formatMeasureValue / formatBinRange / categoryLabel,精度随量级与箱宽自适应),三个解释器的 descriptionParams 与图表标题全部改走该模块;回归测试锁定用户截图中的两个坏例。 |
+| 2026-07-08 | Executor | E-UI-2 | 重设计 Explain Data 概览/卡片布局:流式概览过滤 chip、标题行前置卡片(强度 pill + `字段 → 度量`)、图文横排(图 340px 左侧)、证据表数字走 formatMeasureValue、强度/分数排序、带计数的紧凑分组标题、跳过/错误收进单个折叠 footer;新增三语 overview 键。验证:locale JSON 单一 explain 键、tsc、jest 22 套件 283 测试通过。(Executor 沙箱无法写本文件,由 Kernel 代记) |
diff --git a/packages/graphic-walker/src/components/explainData/index.tsx b/packages/graphic-walker/src/components/explainData/index.tsx
index 007e00d3..ad9683b1 100644
--- a/packages/graphic-walker/src/components/explainData/index.tsx
+++ b/packages/graphic-walker/src/components/explainData/index.tsx
@@ -11,6 +11,7 @@ import {
DEFAULT_CANDIDATE_LIMIT,
defaultExplainers,
explainMark,
+ formatMeasureValue,
type IExplainContext,
type IExplainerResult,
type IExplanation,
@@ -19,6 +20,7 @@ import {
import { Dialog, DialogContent, DialogTitle } from '../ui/dialog';
import { Button } from '../ui/button';
import { themeContext } from '@/store/theme';
+import { cn } from '@/utils';
const EXPLANATION_ORDER: IExplanationType[] = ['extreme-value', 'contributing-dimension', 'contributing-measure', 'unique-mark'];
@@ -35,24 +37,38 @@ const STRENGTH_CLASS: Record<IExplanation['strength'], string> = {
weak: 'bg-muted text-muted-foreground',
};
-function formatDescriptionParams(params: IExplanation['descriptionParams']): IExplanation['descriptionParams'] {
- return Object.fromEntries(
- Object.entries(params).map(([key, value]) => {
- if ((key === 'before' || key === 'after') && typeof value === 'number') {
- return [key, Number(value.toFixed(2))];
- }
- return [key, value];
- })
- );
-}
+const STRENGTH_ORDER: Record<IExplanation['strength'], number> = {
+ strong: 0,
+ moderate: 1,
+ weak: 2,
+};
function formatCell(value: unknown): string {
if (value === null || value === undefined) return '';
if (Array.isArray(value)) return value.map(formatCell).join(' - ');
+ if (typeof value === 'number') return formatMeasureValue(value);
if (typeof value === 'object') return JSON.stringify(value);
return String(value);
}
+function fieldName(field: IExplanation['field'] | IExplanation['measure']): string {
+ return field?.name ?? field?.fid ?? '';
+}
+
+function explanationTitle(explanation: IExplanation): string {
+ if (explanation.type === 'contributing-dimension' || explanation.type === 'contributing-measure') {
+ return `${fieldName(explanation.field)}\u2009\u2192\u2009${fieldName(explanation.measure)}`;
+ }
+ if (explanation.type === 'extreme-value') {
+ return fieldName(explanation.measure ?? explanation.field);
+ }
+ return fieldName(explanation.field);
+}
+
+function sortExplanations(explanations: IExplanation[]): IExplanation[] {
+ return [...explanations].sort((a, b) => STRENGTH_ORDER[a.strength] - STRENGTH_ORDER[b.strength] || b.score - a.score);
+}
+
const EvidenceChart: React.FC<{
spec: Record<string, unknown>;
config: VegaGlobalConfig;
@@ -87,7 +103,7 @@ const EvidenceChart: React.FC<{
};
}, [config, dark, spec]);
- return <div ref={chartRef} className="w-full overflow-x-auto" />;
+ return <div ref={chartRef} className="w-full min-w-[18rem] overflow-x-auto" />;
};
const EvidenceRows: React.FC<{
@@ -133,18 +149,65 @@ const ExplanationCard: React.FC<{
const { t } = useTranslation();
return (
<div className="rounded-md border bg-background p-3">
- <div className="flex items-start justify-between gap-3">
- <p className="text-sm leading-5">{t(explanation.descriptionKey, formatDescriptionParams(explanation.descriptionParams))}</p>
- <span className={`shrink-0 rounded px-2 py-0.5 text-xs font-medium ${STRENGTH_CLASS[explanation.strength]}`}>
+ <div className="flex flex-wrap items-center gap-2">
+ <span className={`inline-flex shrink-0 items-center gap-1.5 rounded-full px-2 py-0.5 text-xs font-medium ${STRENGTH_CLASS[explanation.strength]}`}>
+ <span className="h-1.5 w-1.5 rounded-full bg-current opacity-80" />
{t(`explain.strength.${explanation.strength}`)}
</span>
+ <h4 className="text-sm font-semibold leading-5">{explanationTitle(explanation)}</h4>
</div>
{(explanation.evidence.chartSpec || explanation.evidence.rows) && (
- <div className="mt-3 space-y-3">
- {explanation.evidence.chartSpec && <EvidenceChart spec={explanation.evidence.chartSpec} config={config} dark={dark} />}
- {explanation.evidence.rows && <EvidenceRows rows={explanation.evidence.rows} />}
+ <div className="mt-3 md:flex md:gap-4">
+ {explanation.evidence.chartSpec && (
+ <div className="max-w-full shrink-0 overflow-x-auto md:w-[340px]">
+ <EvidenceChart spec={explanation.evidence.chartSpec} config={config} dark={dark} />
+ </div>
+ )}
+ <div className="mt-3 min-w-0 flex-1 space-y-3 md:mt-0">
+ <p className="text-xs leading-5 text-muted-foreground">{t(explanation.descriptionKey, explanation.descriptionParams)}</p>
+ {explanation.evidence.rows && <EvidenceRows rows={explanation.evidence.rows} />}
+ </div>
</div>
)}
+ {!explanation.evidence.chartSpec && !explanation.evidence.rows && (
+ <p className="mt-3 text-xs leading-5 text-muted-foreground">{t(explanation.descriptionKey, explanation.descriptionParams)}</p>
+ )}
+ </div>
+ );
+};
+
+const OverviewChips: React.FC<{
+ counts: Map<IExplanationType, number>;
+ total: number;
+ activeType: IExplanationType | 'all';
+ onSelect: (type: IExplanationType | 'all') => void;
+}> = ({ counts, total, activeType, onSelect }) => {
+ const { t } = useTranslation();
+ const chipClass = (active: boolean) =>
+ cn(
+ 'inline-flex h-7 shrink-0 items-center rounded-full px-3 text-xs font-medium transition-colors',
+ active ? 'bg-primary text-primary-foreground' : 'bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground'
+ );
+
+ return (
+ <div className="mt-3 flex gap-2 overflow-x-auto">
+ <button type="button" className={chipClass(activeType === 'all')} onClick={() => onSelect('all')}>
+ {t('explain.overview.all')} · {total}
+ </button>
+ {EXPLANATION_ORDER.map((type) => {
+ const count = counts.get(type) ?? 0;
+ if (count === 0) return null;
+ return (
+ <button
+ type="button"
+ key={type}
+ className={chipClass(activeType === type)}
+ onClick={() => onSelect(activeType === type ? 'all' : type)}
+ >
+ {t(`explain.type.${TYPE_KEY[type]}`)} · {count}
+ </button>
+ );
+ })}
</div>
);
};
@@ -160,6 +223,7 @@ const ExplainData: React.FC<{
const [results, setResults] = useState<IExplainerResult[]>([]);
const [loading, setLoading] = useState(false);
const [candidateLimit, setCandidateLimit] = useState(DEFAULT_CANDIDATE_LIMIT);
+ const [activeType, setActiveType] = useState<IExplanationType | 'all'>('all');
const selectedMarkKey = JSON.stringify(toJS(selectedMarkObject));
const vegaConfig = useMemo<VegaGlobalConfig>(() => {
@@ -192,6 +256,7 @@ const ExplainData: React.FC<{
setResults([]);
setLoading(true);
+ setActiveType('all');
(async () => {
try {
@@ -213,7 +278,13 @@ const ExplainData: React.FC<{
return new Map(results.map((result) => [result.explainer, result]));
}, [results]);
+ const insightCounts = useMemo(() => {
+ return new Map(EXPLANATION_ORDER.map((type) => [type, resultsByType.get(type)?.explanations.length ?? 0]));
+ }, [resultsByType]);
+
const hasExplanations = results.some((result) => result.explanations.length > 0);
+ const totalInsights = results.reduce((sum, result) => sum + result.explanations.length, 0);
+ const footerNotes = results.filter((result) => (result.status === 'skipped' || result.status === 'error') && result.reason);
const showEmpty = !loading && results.length > 0 && !hasExplanations;
const trunc = candidateTruncation(ctx);
const showTruncation = !loading && results.length > 0 && trunc.truncated;
@@ -226,39 +297,49 @@ const ExplainData: React.FC<{
setResults([]);
setLoading(false);
setCandidateLimit(DEFAULT_CANDIDATE_LIMIT);
+ setActiveType('all');
}}
>
<DialogContent className="lg:w-[960px]" containerClassName="p-0">
<div className="flex max-h-[min(760px,88vh)] flex-col">
<div className="border-b px-6 py-4">
<DialogTitle>{t('explain.title')}</DialogTitle>
+ {results.length > 0 && (
+ <OverviewChips counts={insightCounts} total={totalInsights} activeType={activeType} onSelect={setActiveType} />
+ )}
</div>
<div className="min-h-[22rem] overflow-y-auto px-6 py-4">
<div className="space-y-5">
{EXPLANATION_ORDER.map((type) => {
+ if (activeType !== 'all' && activeType !== type) return null;
const result = resultsByType.get(type);
if (!result) return null;
if (result.status === 'ok' && result.explanations.length === 0) return null;
+ if (result.status !== 'ok') return null;
- const explanations = [...result.explanations].sort((a, b) => b.score - a.score);
+ const explanations = sortExplanations(result.explanations);
return (
<section key={type} className="space-y-3">
- <h3 className="text-sm font-semibold">{t(`explain.type.${TYPE_KEY[type]}`)}</h3>
- {result.status === 'ok' &&
- explanations.map((explanation, index) => (
- <ExplanationCard
- key={`${type}-${index}`}
- explanation={explanation}
- config={vegaConfig}
- dark={dark}
- />
- ))}
- {result.status === 'skipped' && result.reason && <p className="text-xs text-muted-foreground">{t(result.reason)}</p>}
- {result.status === 'error' && result.reason && <p className="text-xs text-muted-foreground">{result.reason}</p>}
+ <h3 className="text-xs font-medium uppercase tracking-wide text-muted-foreground">
+ {t(`explain.type.${TYPE_KEY[type]}`)} · {explanations.length}
+ </h3>
+ {explanations.map((explanation, index) => (
+ <ExplanationCard key={`${type}-${index}`} explanation={explanation} config={vegaConfig} dark={dark} />
+ ))}
</section>
);
})}
{showEmpty && <div className="py-16 text-center text-sm text-muted-foreground">{t('explain.empty')}</div>}
+ {footerNotes.length > 0 && (
+ <details className="rounded-md border bg-muted/30 px-3 py-2 text-xs text-muted-foreground">
+ <summary className="cursor-pointer font-medium">{t('explain.overview.skippedNote', { count: footerNotes.length })}</summary>
+ <div className="mt-2 space-y-1">
+ {footerNotes.map((result) => (
+ <p key={result.explainer}>{result.status === 'skipped' ? t(result.reason ?? '') : result.reason}</p>
+ ))}
+ </div>
+ </details>
+ )}
</div>
</div>
{loading && (
diff --git a/packages/graphic-walker/src/lib/explain/explainers/contributingDim.ts b/packages/graphic-walker/src/lib/explain/explainers/contributingDim.ts
index c48ac143..a2aa28fa 100644
--- a/packages/graphic-walker/src/lib/explain/explainers/contributingDim.ts
+++ b/packages/graphic-walker/src/lib/explain/explainers/contributingDim.ts
@@ -1,5 +1,6 @@
import type { IRow, IViewField } from '../../../interfaces';
import { getMeaAggKey } from '../../../utils';
+import { categoryLabel } from '../format';
import { EXPLAIN_COUNT_KEY, complementaryDimensions, markLevelQuery } from '../queries';
import { standardize } from '../stats/ridge';
import {
@@ -64,10 +65,11 @@ export const contributingDimExplainer: IExplainer = {
const baseX = baseFeatures(ctx, table);
const { candidateKey } = markLevelQuery(ctx, candidate);
- // global top categories by row count
+ // global top categories by row count (categoryLabel formats bin
+ // [lo, hi] tuples — raw float precision must not reach the UI)
const globalCounts = new Map<string, number>();
for (const row of rows) {
- const cat = String(row[candidateKey]);
+ const cat = categoryLabel(row[candidateKey]);
globalCounts.set(cat, (globalCounts.get(cat) ?? 0) + (Number(row[EXPLAIN_COUNT_KEY]) || 0));
}
const nTrain = table.markKeys.length - 1;
@@ -82,7 +84,7 @@ export const contributingDimExplainer: IExplainer = {
// per-mark rate of each top category
const rateOf = (markRows: IRow[], cat: string, total: number): number => {
if (total <= 0) return 0;
- const catCount = markRows.reduce((acc, r) => acc + (String(r[candidateKey]) === cat ? Number(r[EXPLAIN_COUNT_KEY]) || 0 : 0), 0);
+ const catCount = markRows.reduce((acc, r) => acc + (categoryLabel(r[candidateKey]) === cat ? Number(r[EXPLAIN_COUNT_KEY]) || 0 : 0), 0);
return catCount / total;
};
const rateCols = topCategories.map((cat) => table.rowsByMark.map((markRows, i) => rateOf(markRows, cat, table.counts[i])));
diff --git a/packages/graphic-walker/src/lib/explain/explainers/extremeValue.ts b/packages/graphic-walker/src/lib/explain/explainers/extremeValue.ts
index eb7b18a6..15d1ed9d 100644
--- a/packages/graphic-walker/src/lib/explain/explainers/extremeValue.ts
+++ b/packages/graphic-walker/src/lib/explain/explainers/extremeValue.ts
@@ -1,5 +1,6 @@
import type { IRow, IViewField } from '../../../interfaces';
import { getMeaAggKey } from '../../../utils';
+import { formatMeasureValue } from '../format';
import { detectIqrOutliers, outlierImpact, type ISensitiveAggregator } from '../stats/quantile';
import { EXPLAIN_COUNT_KEY, markPrescreenQuery, markRawQuery } from '../queries';
import type { IExplainContext, IExplainer, IExplanation, IExplanationStrength } from '../types';
@@ -154,8 +155,8 @@ export const extremeValueExplainer: IExplainer = {
agg,
outlierCount: outlierIndices.length,
rowCount: values.length,
- before: aggregateAll,
- after: aggregateWithout,
+ before: formatMeasureValue(aggregateAll),
+ after: formatMeasureValue(aggregateWithout),
changePercent: Math.round(impact * 1000) / 10,
},
evidence: {
diff --git a/packages/graphic-walker/src/lib/explain/explainers/uniqueMark.ts b/packages/graphic-walker/src/lib/explain/explainers/uniqueMark.ts
index 0dc6d309..0f2626b4 100644
--- a/packages/graphic-walker/src/lib/explain/explainers/uniqueMark.ts
+++ b/packages/graphic-walker/src/lib/explain/explainers/uniqueMark.ts
@@ -1,5 +1,6 @@
import type { IRow, IViewField } from '../../../interfaces';
import { getMeaAggKey } from '../../../utils';
+import { categoryLabel } from '../format';
import { gTestPValue, jsDistance, laplaceSmooth, subtractMass } from '../stats/divergence';
import { ADDITIVE_SAFE_AGGS, EXPLAIN_COUNT_KEY, complementaryDimensions, isMarkRow, markLevelQuery } from '../queries';
import type { IExplainContext, IExplainer, IExplanation, IExplanationStrength } from '../types';
@@ -43,19 +44,11 @@ interface ICandidateComposition {
siblingSums: Map<string, number[]>;
}
-function formatCategory(value: unknown): string | number {
- if (Array.isArray(value) && value.length === 2 && typeof value[0] === 'number') {
- // bin transform emits [lo, hi]
- return `${Number(value[0].toFixed(2))}–${Number(value[1].toFixed(2))}`;
- }
- return value as string | number;
-}
-
function buildComposition(ctx: IExplainContext, rows: IRow[], candidateKey: string, measureFids: string[]): ICandidateComposition | null {
type Bucket = { total: number; mark: number; totalSums: number[]; markSums: number[] };
const buckets = new Map<string | number, Bucket>();
for (const row of rows) {
- const category = formatCategory(row[candidateKey]);
+ const category = row[candidateKey] === undefined || row[candidateKey] === null ? row[candidateKey] : categoryLabel(row[candidateKey]);
if (category === undefined || category === null) continue;
let bucket = buckets.get(category);
if (!bucket) {
diff --git a/packages/graphic-walker/src/lib/explain/format.test.ts b/packages/graphic-walker/src/lib/explain/format.test.ts
new file mode 100644
index 00000000..9c920eab
--- /dev/null
+++ b/packages/graphic-walker/src/lib/explain/format.test.ts
@@ -0,0 +1,40 @@
+import { categoryLabel, formatBinRange, formatMeasureValue } from './format';
+
+describe('formatMeasureValue', () => {
+ it('never leaks float noise', () => {
+ expect(formatMeasureValue(11.399379999999999)).toBe('11.4');
+ expect(formatMeasureValue(0.30000000000000004)).toBe('0.3');
+ });
+ it('scales precision with magnitude', () => {
+ expect(formatMeasureValue(285014.6)).toBe('285015');
+ expect(formatMeasureValue(302.44)).toBe('302.4');
+ expect(formatMeasureValue(59.5)).toBe('59.5');
+ expect(formatMeasureValue(0.0123456)).toBe('0.0123');
+ expect(formatMeasureValue(0)).toBe('0');
+ expect(formatMeasureValue(-1234.9)).toBe('-1235');
+ });
+ it('stays Number()-parseable (description params get re-parsed in tests)', () => {
+ for (const v of [285014.6, 302.44, 59.5, -0.5, 1e-4]) {
+ expect(Number.isFinite(Number(formatMeasureValue(v)))).toBe(true);
+ }
+ });
+});
+
+describe('formatBinRange', () => {
+ it('fixes the reported bin-label regression', () => {
+ expect(formatBinRange(11.399379999999999, 17.099069999999998)).toBe('11.4–17.1');
+ expect(formatBinRange(15.970000000000002, 20.576)).toBe('16–20.6');
+ });
+ it('adapts decimals to bin width', () => {
+ expect(formatBinRange(0, 1000)).toBe('0–1000');
+ expect(formatBinRange(0.02, 0.08)).toBe('0.02–0.08');
+ });
+});
+
+describe('categoryLabel', () => {
+ it('formats bin tuples and passes strings through', () => {
+ expect(categoryLabel([11.399379999999999, 17.099069999999998])).toBe('11.4–17.1');
+ expect(categoryLabel('online')).toBe('online');
+ expect(categoryLabel(42.00000000001)).toBe('42');
+ });
+});
diff --git a/packages/graphic-walker/src/lib/explain/format.ts b/packages/graphic-walker/src/lib/explain/format.ts
new file mode 100644
index 00000000..921082c8
--- /dev/null
+++ b/packages/graphic-walker/src/lib/explain/format.ts
@@ -0,0 +1,52 @@
+/**
+ * Display formatting for values that flow into explanation descriptions and
+ * evidence-chart titles. Kernel-owned: explainers must never leak raw float
+ * precision (e.g. "11.399379999999999") to the UI.
+ */
+
+/** trim trailing zeros of a toFixed result: "11.40" → "11.4", "12.00" → "12" */
+function trimZeros(s: string): string {
+ return s.includes('.') ? s.replace(/\.?0+$/, '') : s;
+}
+
+/**
+ * Human-scale numeric formatting without thousands separators (values may be
+ * re-parsed with Number()): integers above 1000, 1 decimal in the tens,
+ * up to 3 significant decimals below.
+ */
+export function formatMeasureValue(v: number): string {
+ if (!Number.isFinite(v)) return String(v);
+ const abs = Math.abs(v);
+ if (abs >= 1000) return String(Math.round(v));
+ if (abs >= 100) return trimZeros(v.toFixed(1));
+ if (abs >= 1) return trimZeros(v.toFixed(2));
+ if (abs === 0) return '0';
+ return trimZeros(v.toPrecision(3));
+}
+
+/** decimals appropriate to a bin's width so adjacent bins stay distinct */
+function binDecimals(width: number): number {
+ if (!Number.isFinite(width) || width <= 0) return 2;
+ if (width >= 10) return 0;
+ if (width >= 1) return 1;
+ if (width >= 0.1) return 2;
+ return 3;
+}
+
+/** "11.399379999999999–17.099069999999998" → "11.4–17.1" */
+export function formatBinRange(lo: number, hi: number): string {
+ const d = binDecimals(hi - lo);
+ return `${trimZeros(lo.toFixed(d))}–${trimZeros(hi.toFixed(d))}`;
+}
+
+/**
+ * Display label for a category value coming back from a grouped query.
+ * Bin transforms emit `[lo, hi]` tuples; everything else renders as-is.
+ */
+export function categoryLabel(value: unknown): string {
+ if (Array.isArray(value) && value.length === 2 && typeof value[0] === 'number' && typeof value[1] === 'number') {
+ return formatBinRange(value[0], value[1]);
+ }
+ if (typeof value === 'number') return formatMeasureValue(value);
+ return String(value);
+}
diff --git a/packages/graphic-walker/src/lib/explain/index.ts b/packages/graphic-walker/src/lib/explain/index.ts
index e7975e1f..54e1c7e0 100644
--- a/packages/graphic-walker/src/lib/explain/index.ts
+++ b/packages/graphic-walker/src/lib/explain/index.ts
@@ -1,6 +1,7 @@
export * from './types';
export { explainMark, explainMarkAll } from './engine';
export { candidateTruncation, DEFAULT_CANDIDATE_LIMIT } from './queries';
+export { formatMeasureValue, formatBinRange, categoryLabel } from './format';
export { extremeValueExplainer } from './explainers/extremeValue';
export { uniqueMarkExplainer } from './explainers/uniqueMark';
export { contributingDimExplainer } from './explainers/contributingDim';
diff --git a/packages/graphic-walker/src/locales/en-US.json b/packages/graphic-walker/src/locales/en-US.json
index 0a316dee..054fc6b0 100644
--- a/packages/graphic-walker/src/locales/en-US.json
+++ b/packages/graphic-walker/src/locales/en-US.json
@@ -52,6 +52,10 @@
"title": "Explain Data",
"loading": "Analyzing...",
"empty": "No significant patterns found",
+ "overview": {
+ "all": "All",
+ "skippedNote": "{{count}} analyses were skipped"
+ },
"type": {
"extremeValue": "Extreme values",
"contributingDimension": "Contributing dimensions",
diff --git a/packages/graphic-walker/src/locales/ja-JP.json b/packages/graphic-walker/src/locales/ja-JP.json
index 858c317f..fb198f5a 100644
--- a/packages/graphic-walker/src/locales/ja-JP.json
+++ b/packages/graphic-walker/src/locales/ja-JP.json
@@ -47,6 +47,10 @@
"title": "データの説明",
"loading": "分析中...",
"empty": "顕著なパターンは見つかりませんでした",
+ "overview": {
+ "all": "すべて",
+ "skippedNote": "{{count}} 件の分析をスキップしました"
+ },
"type": {
"extremeValue": "極端な値",
"contributingDimension": "寄与するディメンション",
diff --git a/packages/graphic-walker/src/locales/zh-CN.json b/packages/graphic-walker/src/locales/zh-CN.json
index 88a5d046..4e001cbc 100644
--- a/packages/graphic-walker/src/locales/zh-CN.json
+++ b/packages/graphic-walker/src/locales/zh-CN.json
@@ -47,6 +47,10 @@
"title": "数据解释",
"loading": "正在分析...",
"empty": "未发现显著模式",
+ "overview": {
+ "all": "全部",
+ "skippedNote": "{{count}} 项分析被跳过"
+ },
"type": {
"extremeValue": "极端值",
"contributingDimension": "贡献维度",