From 931e158edfe9201365e064f2367d5790b51525ce Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Mon, 29 Jul 2024 12:06:04 -0300 Subject: [PATCH] Add legend to explain bubble size represents lines of code --- aider/website/_includes/blame.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/aider/website/_includes/blame.md b/aider/website/_includes/blame.md index cd3d2c336..d784ccf5d 100644 --- a/aider/website/_includes/blame.md +++ b/aider/website/_includes/blame.md @@ -66,7 +66,20 @@ document.addEventListener('DOMContentLoaded', function () { } }, legend: { - display: false + display: true, + position: 'bottom', + labels: { + generateLabels: function(chart) { + return [{ + text: 'Bubble size: Lines of code', + fillStyle: 'rgba(54, 162, 235, 0.2)', + strokeStyle: 'rgba(54, 162, 235, 1)', + lineWidth: 1, + hidden: false, + index: 0 + }]; + } + } } } }