From 285833e98078d60375b243b4e52d714ac73e8b3c Mon Sep 17 00:00:00 2001 From: iyashjayesh Date: Sun, 1 Feb 2026 14:20:37 +0530 Subject: [PATCH] feat: Add specific colors to CPU core usage chart segments --- static/js/index.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/static/js/index.js b/static/js/index.js index 483f18c..0a53f34 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -543,15 +543,18 @@ document.addEventListener('DOMContentLoaded', () => { data: [ { value: cpu_statistics.cores_used_by_service, - name: 'Cores Used by Service' + name: 'Cores Used by Service', + itemStyle: { color: '#00A1E4' } }, { value: cpu_statistics.cores_used_by_system, - name: 'Cores Used by System' + name: 'Cores Used by System', + itemStyle: { color: '#FF6F61' } }, { value: cpu_statistics.total_cores, - name: 'Total Cores' + name: 'Total Cores', + itemStyle: { color: '#FFD166' } } ], emphasis: {