From 5827163ada59089e855e0d13da8ea6d587910f02 Mon Sep 17 00:00:00 2001 From: "Joseph.Rawlings" Date: Mon, 1 Dec 2025 08:42:02 -0500 Subject: [PATCH] refactor: simplify memory chart configuration by removing redundant series and adjusting color settings --- .../Proxmox/views/statistics.blade.php | 30 +++++++------------ 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/extensions/Servers/Proxmox/views/statistics.blade.php b/extensions/Servers/Proxmox/views/statistics.blade.php index 6a1ebc336..af7f30b67 100644 --- a/extensions/Servers/Proxmox/views/statistics.blade.php +++ b/extensions/Servers/Proxmox/views/statistics.blade.php @@ -4199,12 +4199,10 @@ }); var memoryOptions = Object.assign({}, baseOptions, { + // Single series for memory usage; capacity is reflected via the y-axis max series: [{ name: 'Memory Utilization', data: [], - }, { - name: 'Memory Max', - data: [], }], yaxis: { labels: { @@ -4220,7 +4218,7 @@ max: (typeof maxMem === 'number' && maxMem > 0) ? maxMem : undefined, min: 0, }, - colors: ['#00E396', '#159368'], + colors: ['#00E396'], }); var networkOptions = Object.assign({}, baseOptions, { @@ -4452,23 +4450,15 @@ console.warn('No Memory data received', eventData); return; } - memoryChart.updateSeries([{ + memoryChart.updateSeries([{ name: 'Memory Utilization', - data: data.map(function(item) { - return { - x: item.time * 1000, - y: item.mem ? item.mem : 0, - } - }), - }, { - name: 'Memory Max', - data: data.map(function(item) { - return { - x: item.time * 1000, - y: item.maxmem ? item.maxmem : 0, - } - }) - }]); + data: data.map(function(item) { + return { + x: item.time * 1000, + y: item.mem ? item.mem : 0, + } + }), + }]); // Mark that this chart has successfully received data memoryChartHasData = true;