From 4c9337f8657796d0c1240615640cb82d0164b109 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Mon, 29 Jul 2024 12:12:07 -0300 Subject: [PATCH] Move the legend to the top and add a chart title to improve the visibility of the dataset label. --- aider/website/_includes/blame.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/aider/website/_includes/blame.md b/aider/website/_includes/blame.md index 57296e90d..d2cbcf7aa 100644 --- a/aider/website/_includes/blame.md +++ b/aider/website/_includes/blame.md @@ -68,19 +68,33 @@ document.addEventListener('DOMContentLoaded', function () { }, legend: { display: true, - position: 'bottom', + position: 'top', labels: { generateLabels: function(chart) { return [{ - text: 'Bubble size: Lines of code', + text: chart.data.datasets[0].label, fillStyle: 'rgba(54, 162, 235, 0.2)', strokeStyle: 'rgba(54, 162, 235, 1)', lineWidth: 1, hidden: false, index: 0 + }, { + text: 'Bubble size: Lines of code', + fillStyle: 'rgba(54, 162, 235, 0.2)', + strokeStyle: 'rgba(54, 162, 235, 1)', + lineWidth: 1, + hidden: false, + index: 1 }]; } } + }, + title: { + display: true, + text: 'Aider\'s Contribution to Each Release', + font: { + size: 16 + } } } }