fix: Add tick at base of cost column bars in leaderboards

This commit is contained in:
Paul Gauthier (aider) 2025-04-12 23:20:08 -07:00
parent 8e8b18e9a9
commit 278f90acdd

View file

@ -196,7 +196,8 @@ document.addEventListener('DOMContentLoaded', function() {
if (logMaxCost > 0) { // Ensure logMaxCost is positive to avoid division by zero or negative results
const tickValues = [];
// Generate ticks for $10, $20, $30... up to maxCost
// Generate ticks starting at $0, then $10, $20, $30... up to maxCost
tickValues.push(0); // Add tick at base (0 position)
for (let tickCost = 10; tickCost <= maxCost; tickCost += 10) {
tickValues.push(tickCost);
}