mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-07-07 17:00:36 +02:00
color roofline plot, add option to match pie and table color for ndoestate
This commit is contained in:
@@ -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']];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user