mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-14 08:34:59 +00:00
Move the legend to the top and add a chart title to improve the visibility of the dataset label.
This commit is contained in:
parent
c294bff910
commit
4c9337f865
1 changed files with 16 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue