{
  "id": 21548753,
  "title": "A flipped > made 9 look bigger than 9.22 in Grafana tables",
  "url": "https://urgent.news/2026/11/24/a-flipped-made-9-look-bigger-than-9-22-in-grafana-tables",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-24T05:30:20.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/ashokramsi/a-flipped-made-9-look-bigger-than-922-in-grafana-tables-26na"
  },
  "original_language": "en",
  "account": "A Grafana table gauge displayed 9 as the longest value in a column, even though 9.22 was numerically larger. A bug allowed the value with the shortest text representation to set the space for all cells, regardless of the actual numeric values. To fix this, the comparison logic needed to be reversed so the longest value would set the text space, taking into account any prefixes or suffixes. The updated code kept track of the longest value and its length throughout the scan, updating the longest value only when a longer value was found. This ensured all cells used the correct text space based on the actual largest value. The fix was implemented on 3 November 2026 and included additional tests to verify the changes.",
  "summary": "9.22 is bigger than 9 . A Grafana table gauge disagreed and gave 9 the longest bar in the column. seriych filed it as issue #113304 . My fix, grafana/grafana#136236 , came down to one backwards comparison, plus a review lesson about code that runs for every single cell. What a gauge cell is Grafana is an open source dashboard tool. In its tables, a column can show each number as a gauge: a…",
  "key_points": [
    "Grafana table gauge incorrectly displayed 9 as the longest value",
    "Bug caused 9.22 to appear smaller than 9 due to text length",
    "Fix implemented on 3 November 2026 with updated comparison logic"
  ],
  "editors_take": "Reversing the comparison logic ensures that text length rather than numerical value dictates cell spacing, preventing visual misinterpretations in data tables when displaying varying digit counts.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}