From 01d05b4331a83c9f83c6a3497c7f664b9238b7e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B2=D0=BE=D0=B2=20=D0=90=D1=80=D1=82?= =?UTF-8?q?=D0=B5=D0=BC?= Date: Sun, 5 Jul 2026 13:29:05 +0300 Subject: [PATCH] =?UTF-8?q?BUR-37=20=D0=BF=D1=80=D0=B8=D0=B2=D0=B5=D0=BB?= =?UTF-8?q?=20=D1=82=D1=83=D0=BB=D1=82=D0=B8=D0=BF=20=D0=BA=20=D1=88=D0=B0?= =?UTF-8?q?=D0=B1=D0=BB=D0=BE=D0=BD=D1=83=20"=D1=81=D1=80=D0=B5=D0=B4.=20$?= =?UTF-8?q?{avg}=20(${min}=20..=20${max})"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/features/history-chart/historyChartFormat.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/history-chart/historyChartFormat.ts b/src/features/history-chart/historyChartFormat.ts index 8f6f42f..5e2b047 100644 --- a/src/features/history-chart/historyChartFormat.ts +++ b/src/features/history-chart/historyChartFormat.ts @@ -60,7 +60,7 @@ function formatChartValue(value: number): string { }).format(value); } -/** Показывает одно значение, если min/avg/max визуально совпадают. */ +/** Форматирует значение tooltip: одно число для min=avg=max или среднее с диапазоном. */ function formatTooltipValue(value: AvgPointValue): string { const avg = formatChartValue(value[1]); const min = formatChartValue(value[2]); @@ -70,7 +70,7 @@ function formatTooltipValue(value: AvgPointValue): string { return avg; } - return `min ${min} · avg ${avg} · max ${max}`; + return `сред. ${avg} (${min} .. ${max})`; } function isAvgPointValue(value: unknown): value is AvgPointValue { -- 2.49.1