color roofline plot, add option to match pie and table color for ndoestate

This commit is contained in:
Christoph Kluge
2025-12-11 18:51:19 +01:00
parent 4083de2a51
commit 6e385db378
6 changed files with 304 additions and 129 deletions
+12 -1
View File
@@ -59,7 +59,15 @@
'rgb(135,133,0)',
'rgb(0,167,108)',
'rgb(189,189,189)',
]
],
nodeStates: {
allocated: "rgba(0, 128, 0, 0.75)",
down: "rgba(255, 0, 0, 0.75)",
idle: "rgba(0, 0, 255, 0.75)",
reserved: "rgba(255, 0, 255, 0.75)",
mixed: "rgba(255, 215, 0, 0.75)",
unknown: "rgba(0, 0, 0, 0.75)"
}
}
</script>
@@ -77,6 +85,7 @@
entities,
displayLegend = false,
useAltColors = false,
fixColors = null
} = $props();
/* Const Init */
@@ -98,6 +107,8 @@
c = [...colors['colorblind']];
} else if (useAltColors) {
c = [...colors['alternative']];
} else if (fixColors?.length > 0) {
c = [...fixColors];
} else {
c = [...colors['default']];
}