Add spanGaps option to chart datasets for CPU, RAM, and Disk in ServerDetail component

This commit is contained in:
headlessdev 2025-04-23 19:31:10 +02:00
parent 0c9a7670fc
commit c82a527ae4

View File

@ -201,7 +201,8 @@ export default function ServerDetail() {
data: history.datasets.cpu, data: history.datasets.cpu,
borderColor: 'rgb(75, 192, 192)', borderColor: 'rgb(75, 192, 192)',
backgroundColor: 'rgba(75, 192, 192, 0.1)', backgroundColor: 'rgba(75, 192, 192, 0.1)',
fill: true fill: true,
spanGaps: false
}] }]
}, },
options: { options: {
@ -247,7 +248,8 @@ export default function ServerDetail() {
data: history.datasets.ram, data: history.datasets.ram,
borderColor: 'rgb(153, 102, 255)', borderColor: 'rgb(153, 102, 255)',
backgroundColor: 'rgba(153, 102, 255, 0.1)', backgroundColor: 'rgba(153, 102, 255, 0.1)',
fill: true fill: true,
spanGaps: false
}] }]
}, },
options: { options: {
@ -290,7 +292,8 @@ export default function ServerDetail() {
data: history.datasets.disk, data: history.datasets.disk,
borderColor: 'rgb(255, 159, 64)', borderColor: 'rgb(255, 159, 64)',
backgroundColor: 'rgba(255, 159, 64, 0.1)', backgroundColor: 'rgba(255, 159, 64, 0.1)',
fill: true fill: true,
spanGaps: false
}] }]
}, },
options: { options: {