From 6880bb506cb28d4850b7ad6c6a42c1d7c77374c1 Mon Sep 17 00:00:00 2001 From: Robert Jaszczurek <92210485+rbrtj@users.noreply.github.com> Date: Tue, 1 Jul 2025 15:27:28 +0200 Subject: [PATCH] [ML] Anomaly Swimlane: Fixes incorrectly formatted tooltip values (#225845) In a recent PR https://github.com/elastic/kibana/pull/221081/commits/ddca03c9b8b2c69d9feba524cb10fd3bfdc3d847 we removed the formatter, which caused tooltip values to no longer be truncated. This PR fixes that. (cherry picked from commit 1f3f8da6d79c17e2c2f8a104b6a6b503fa69f0b0) --- .../shared/ml/public/application/explorer/swimlane_container.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/x-pack/platform/plugins/shared/ml/public/application/explorer/swimlane_container.tsx b/x-pack/platform/plugins/shared/ml/public/application/explorer/swimlane_container.tsx index ec5f11ecb9f3f..dddc2ca2d267b 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/explorer/swimlane_container.tsx +++ b/x-pack/platform/plugins/shared/ml/public/application/explorer/swimlane_container.tsx @@ -538,6 +538,7 @@ export const SwimlaneContainer: FC = ({ xAccessor="time" yAccessor="laneLabel" valueAccessor="value" + valueFormatter={(score: number) => String(Math.floor(score))} highlightedData={highlightedData} xScale={{ type: ScaleType.Time,