From 1425fcb4c0664410cbcc2074c0da0f3f750b6860 Mon Sep 17 00:00:00 2001 From: lauraMon Date: Thu, 29 Aug 2019 14:10:17 -0400 Subject: Adds legendText to timeseries and make default value internationalized --- app/assets/javascripts/monitoring/components/charts/time_series.vue | 6 ++++++ changelogs/unreleased/internationalization-time-series-wrapper.yml | 5 +++++ locale/gitlab.pot | 6 ++++++ 3 files changed, 17 insertions(+) create mode 100644 changelogs/unreleased/internationalization-time-series-wrapper.yml 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" >