mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-25 08:01:15 +01:00
dont show legends on error charts
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user