dont show legends on error charts

This commit is contained in:
Barış Soner Uşaklı
2023-11-10 16:29:33 -05:00
parent 128c24f29c
commit 5aa4bf3310

View File

@@ -92,30 +92,29 @@ function setupCharts() {
],
},
};
const chartOptions = {
responsive: true,
scales: {
y: {
beginAtZero: true,
},
},
plugins: {
legend: {
display: false,
},
},
};
new Chart(notFoundCanvas.getContext('2d'), {
type: 'line',
data: data['not-found'],
options: {
responsive: true,
scales: {
y: {
beginAtZero: true,
},
},
},
options: chartOptions,
});
new Chart(tooBusyCanvas.getContext('2d'), {
type: 'line',
data: data.toobusy,
options: {
responsive: true,
scales: {
y: {
beginAtZero: true,
},
},
},
options: chartOptions,
});
}