XYChart: Coerce threshold steps to numbers (#104485)

pull/102561/head^2
Leon Sorokin 3 months ago committed by GitHub
parent 5a10e3b43e
commit a6735721bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      public/app/plugins/panel/xychart/scatter.ts

@ -641,7 +641,8 @@ function fieldValueColors(f: Field, theme: GrafanaTheme2): FieldColorValues {
let lasti = steps.length - 1; let lasti = steps.length - 1;
for (let i = lasti; i > 0; i--) { 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'; conds += '0';

Loading…
Cancel
Save