From 7ffb5cdb9c39aaf940254ae7817569b1e0930533 Mon Sep 17 00:00:00 2001 From: lyun Date: Mon, 2 Nov 2026 16:30:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9A=E8=B6=8B=E5=8A=BF?= =?UTF-8?q?=E5=9B=BE=E9=87=87=E7=94=A8=E8=BD=BB=E5=BA=A6=E5=B9=B3=E6=BB=91?= =?UTF-8?q?=E6=9B=B2=E7=BA=BF=E5=B9=B6=E4=BF=9D=E7=95=99=E6=9F=8F=E6=8B=89?= =?UTF-8?q?=E5=9B=BE=E7=9B=B4=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DESIGN.md | 2 ++ web/src/QueryPage.tsx | 2 +- web/src/analysisVisualsModel.ts | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/DESIGN.md b/DESIGN.md index bdfe808..8acd2dc 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -133,3 +133,5 @@ - 更新中的旧范围结果不能钻取、查看明细或导出;区域独立重试。任务使用真实阶段,写入即时忙碌并防重复,不显示虚构百分比或新增常驻说明。 - 返回页面保留筛选、页码、滚动位置及表格高度;隐藏页面和未选管理页签不主动刷新。业务分页、全范围搜索排序和导出不变。 - 实现与验证详见 docs/全系统统一加载实现与验收_20261102.md。 + +- 2026-11-02:趋势折线使用用户选定的 A 轻度平滑(0.15),沿横轴约束曲线;查询合格率、不良率、智能分析与导出统一。柏拉图累计线保持直线,数据点、缺失断点和计算口径不变。 diff --git a/web/src/QueryPage.tsx b/web/src/QueryPage.tsx index 331c111..4a45b16 100644 --- a/web/src/QueryPage.tsx +++ b/web/src/QueryPage.tsx @@ -1305,7 +1305,7 @@ export function TrendChart({ rows, mode, stage, rateBasis, targetRate, selectedP xAxis: { type: 'category', data: labels, triggerEvent: true, axisLine: { lineStyle: { color: line } }, axisLabel: { color: ink, fontFamily, fontSize, margin: 12 }, axisTick: { show: false } }, }; let option: echarts.EChartsCoreOption; - const pointStyle = { z: 10, symbol: 'circle', symbolSize: 5, showSymbol: true, emphasis: { focus: 'none' as const, scale: 1.35 }, connectNulls: false }; + const pointStyle = { smooth: 0.15, smoothMonotone: 'x' as const, z: 10, symbol: 'circle', symbolSize: 5, showSymbol: true, emphasis: { focus: 'none' as const, scale: 1.35 }, connectNulls: false }; if (mode === 'production') { const rates = [...rows.flatMap(row => [visibleCompositeRate(row, rateBasis), visibleStageRate(row, 'black'), visibleStageRate(row, 'bright', rateBasis)]).filter((value): value is number => value != null).map(value => value * 100), ...(targetRate == null ? [] : [targetRate])]; const minRate = rates.length ? Math.max(0, Math.floor(Math.min(...rates) - 2)) : 0; diff --git a/web/src/analysisVisualsModel.ts b/web/src/analysisVisualsModel.ts index 776d18c..d9fcd84 100644 --- a/web/src/analysisVisualsModel.ts +++ b/web/src/analysisVisualsModel.ts @@ -892,7 +892,8 @@ export function buildAnalysisVisualOption(visual: AnalysisVisual, theme: VisualC }), itemStyle: { color: colors[seriesIndex % colors.length] }, connectNulls: false, - smooth: false, + smooth: ['line', 'area'].includes(visual.type) ? 0.15 : false, + smoothMonotone: 'x', ...(['bar', 'column'].includes(visual.type) ? { barMaxWidth: combinedDefects ? 18 : 32, ...(combinedDefects ? { stack: 'combined-defect-stage', barWidth: 18 } : {}),