From c82a527ae4beac518a8ebba57034349be043acfe Mon Sep 17 00:00:00 2001 From: headlessdev Date: Wed, 23 Apr 2025 19:31:10 +0200 Subject: [PATCH] Add spanGaps option to chart datasets for CPU, RAM, and Disk in ServerDetail component --- app/dashboard/servers/[server_id]/Server.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/dashboard/servers/[server_id]/Server.tsx b/app/dashboard/servers/[server_id]/Server.tsx index 5dbd788..80e3138 100644 --- a/app/dashboard/servers/[server_id]/Server.tsx +++ b/app/dashboard/servers/[server_id]/Server.tsx @@ -201,7 +201,8 @@ export default function ServerDetail() { data: history.datasets.cpu, borderColor: 'rgb(75, 192, 192)', backgroundColor: 'rgba(75, 192, 192, 0.1)', - fill: true + fill: true, + spanGaps: false }] }, options: { @@ -247,7 +248,8 @@ export default function ServerDetail() { data: history.datasets.ram, borderColor: 'rgb(153, 102, 255)', backgroundColor: 'rgba(153, 102, 255, 0.1)', - fill: true + fill: true, + spanGaps: false }] }, options: { @@ -290,7 +292,8 @@ export default function ServerDetail() { data: history.datasets.disk, borderColor: 'rgb(255, 159, 64)', backgroundColor: 'rgba(255, 159, 64, 0.1)', - fill: true + fill: true, + spanGaps: false }] }, options: {