From fcf94ed2cb90fcd2dba02a68dc88b22259535833 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 21 Oct 2025 11:36:21 -0400 Subject: [PATCH] Change adValue for always summing up values received --- text_graph.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/text_graph.js b/text_graph.js index d5ac2bc..00ebaf6 100644 --- a/text_graph.js +++ b/text_graph.js @@ -63,10 +63,9 @@ class ASCIIBarChart { * @param {number} value - The numeric value to add */ addValue(value) { - - // Time bin mode: increment count in current active bin + // Time bin mode: add value to current active bin count this.checkBinRotation(); // Ensure we have an active bin - this.bins[this.currentBinIndex].count++; + this.bins[this.currentBinIndex].count += value; // Changed from ++ to += value this.totalDataPoints++; this.render();