Remove legend

This commit is contained in:
George Lacey 2022-04-11 08:13:55 +01:00
parent 378df87eeb
commit f16a0d5b65

View File

@ -1,10 +1,10 @@
function draw_time_series_graph(chartID, repo, dateLabels, sizeUnits) { function draw_time_series_graph(chartID, repo, dateLabels, sizeUnits) {
let datasets = [{ let datasets = [{
label: repo.label, label: repo.label,
data: repo.size, data: repo.size,
fill: false, fill: false,
borderColor: 'rgb(7, 59, 76)' borderColor: 'rgb(7, 59, 76)'
}] }]
const data = { const data = {
labels: dateLabels, labels: dateLabels,
@ -27,7 +27,10 @@ function draw_time_series_graph(chartID, repo, dateLabels, sizeUnits) {
} }
} }
} }
} },
legend: {
display: false
},
}, },
scales: { scales: {
y: { y: {