优化:趋势图采用轻度平滑曲线并保留柏拉图直线

This commit is contained in:
2026-11-02 16:30:53 +08:00
parent a84ee85a84
commit 7ffb5cdb9c
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -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;