diff --git a/dashboard/src/components/GraphItem.vue b/dashboard/src/components/GraphItem.vue index 3c398ad63..bda163683 100644 --- a/dashboard/src/components/GraphItem.vue +++ b/dashboard/src/components/GraphItem.vue @@ -27,6 +27,7 @@ const props = defineProps({ memory: Number, cpuCount: Number, highMark: Number, + highMarkLabel: String, }); function createGraphOptions({ yscale, period, highMark }) { @@ -112,7 +113,18 @@ function createGraphOptions({ yscale, period, highMark }) { yMin: highMark, yMax: highMark, borderColor: 'rgb(139, 0, 0)', - borderWidth: 0.5 + borderWidth: 0.5, + label: { + display: true, + content: props.highMarkLabel, + position: 'end', // 'start', 'center', or 'end' + backgroundColor: 'transparent', + color: 'rgb(139, 0, 0)', + yAdjust: -6, + font: { + size: 10 + } + } } } }, @@ -302,7 +314,7 @@ defineExpose({