summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/monitoring/components/charts/time_series.vue
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/monitoring/components/charts/time_series.vue')
-rw-r--r--app/assets/javascripts/monitoring/components/charts/time_series.vue6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/assets/javascripts/monitoring/components/charts/time_series.vue b/app/assets/javascripts/monitoring/components/charts/time_series.vue
index 02e7a7ba0a6..4796f456bc5 100644
--- a/app/assets/javascripts/monitoring/components/charts/time_series.vue
+++ b/app/assets/javascripts/monitoring/components/charts/time_series.vue
@@ -58,6 +58,11 @@ export default {
required: false,
default: () => [],
},
+ legendText: {
+ type: Object,
+ required: false,
+ default: () => ({ average: __('Avg'), max: __('Max') }),
+ },
},
data() {
return {
@@ -304,6 +309,7 @@ export default {
:thresholds="thresholds"
:width="width"
:height="height"
+ :legend-text="legendText"
@updated="onChartUpdated"
>
<template v-if="tooltip.isDeployment">