From 994e9a1475835190a16bf049f61823ad54c14ef1 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Mon, 29 Jul 2024 12:00:32 -0300 Subject: [PATCH] Change the y-axis to show lines of aider code instead of percentage --- aider/website/_includes/blame.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aider/website/_includes/blame.md b/aider/website/_includes/blame.md index d37f61e4f..3399015bf 100644 --- a/aider/website/_includes/blame.md +++ b/aider/website/_includes/blame.md @@ -12,7 +12,7 @@ document.addEventListener('DOMContentLoaded', function () { {% for row in site.data.blame %} { x: '{{ row.end_date }}', - y: {{ row.aider_percentage }}, + y: {{ row.aider_lines }}, label: '{{ row.end_tag }}' }, {% endfor %} @@ -52,7 +52,7 @@ document.addEventListener('DOMContentLoaded', function () { y: { title: { display: true, - text: 'Aider Contribution (% of code)' + text: 'Aider Contribution (lines of code)' }, beginAtZero: true, } @@ -61,7 +61,7 @@ document.addEventListener('DOMContentLoaded', function () { tooltip: { callbacks: { label: function(context) { - return `${context.raw.label}: ${Math.round(context.raw.y)}%`; + return `${context.raw.label}: ${context.raw.y} lines`; } } }