diff options
Diffstat (limited to 'app/assets/javascripts/projects/pipelines/charts/components/pipeline_charts.vue')
-rw-r--r-- | app/assets/javascripts/projects/pipelines/charts/components/pipeline_charts.vue | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/app/assets/javascripts/projects/pipelines/charts/components/pipeline_charts.vue b/app/assets/javascripts/projects/pipelines/charts/components/pipeline_charts.vue index d3cadcd2bd5..ecd2288eb2f 100644 --- a/app/assets/javascripts/projects/pipelines/charts/components/pipeline_charts.vue +++ b/app/assets/javascripts/projects/pipelines/charts/components/pipeline_charts.vue @@ -199,6 +199,16 @@ export default { }, ]; }, + chartOptions() { + return { + ...this.$options.timesChartOptions, + yAxis: { + axisLabel: { + formatter: (value) => value, + }, + }, + }; + }, }, methods: { hideAlert() { @@ -314,7 +324,7 @@ export default { <strong>{{ __('Pipeline durations for the last 30 commits') }}</strong> <gl-column-chart :height="$options.chartContainerHeight" - :option="$options.timesChartOptions" + :option="chartOptions" :bars="timesChartTransformedData" :y-axis-title="__('Minutes')" :x-axis-title="__('Commit')" |