From 2b8c8d45d13fa2151d2092cb8fa340a0b5ef73c0 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 22 Apr 2025 13:47:05 +0000 Subject: [PATCH] apply security patch: release-11.5.4/379-202504030825.patch commit cea32b8fa7979c9960372467eedd2eea18b33220 Author: nmarrs Date: Thu Apr 3 09:22:04 2025 +0100 backport commit --- public/app/plugins/panel/xychart/scatter.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/app/plugins/panel/xychart/scatter.ts b/public/app/plugins/panel/xychart/scatter.ts index 5f741b92323..601afc3f0bb 100644 --- a/public/app/plugins/panel/xychart/scatter.ts +++ b/public/app/plugins/panel/xychart/scatter.ts @@ -641,7 +641,8 @@ function fieldValueColors(f: Field, theme: GrafanaTheme2): FieldColorValues { let lasti = steps.length - 1; for (let i = lasti; i > 0; i--) { - conds += `v >= ${steps[i].value} ? ${i} : `; + let rhs = Number(steps[i].value); + conds += `v >= ${rhs} ? ${i} : `; } conds += '0';