Add legend to explain bubble size represents lines of code

This commit is contained in:
Paul Gauthier (aider) 2024-07-29 12:06:04 -03:00
parent 3ed6271fa2
commit 931e158edf

View file

@ -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
}];
}
}
}
}
}