From 4861cd977104e6804dbcaea5fbe749c0694dde2c Mon Sep 17 00:00:00 2001 From: Harwinder Sekhon Date: Sat, 15 Aug 2026 11:38:25 -0400 Subject: [PATCH] Update gauge colors: green for positive scores, red for negative scores --- static/gauge.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/static/gauge.js b/static/gauge.js index abf108c..8e290dd 100644 --- a/static/gauge.js +++ b/static/gauge.js @@ -22,11 +22,9 @@ document.addEventListener('DOMContentLoaded', function() { width: 200, height: 160, redFrom: -100, - redTo: -50, - yellowFrom: -50, - yellowTo: 0, + redTo: 0, greenFrom: 0, - greenTo: 50, + greenTo: 100, minorTicks: 5, min: -100, max: 100, @@ -37,6 +35,10 @@ document.addEventListener('DOMContentLoaded', function() { } }; + // Remove yellow region + delete options.yellowFrom; + delete options.yellowTo; + // Create and draw the gauge const chart = new google.visualization.Gauge(container); chart.draw(data, options);