diff --git a/text_graph.js b/text_graph.js index 00ebaf6..059d7f4 100644 --- a/text_graph.js +++ b/text_graph.js @@ -236,8 +236,8 @@ class ASCIIBarChart { } } - // Calculate the actual count value this row represents (0 at bottom, increasing upward) - const rowCount = (row - 1) * scaleFactor; + // Calculate the actual count value this row represents (1 at bottom, increasing upward) + const rowCount = (row - 1) * scaleFactor + 1; // Add Y-axis label (show actual count values) line += String(rowCount).padStart(3, ' ') + ' |';