Skip to content

Commit f49aa12

Browse files
Fixed Chart Labels
1 parent 0bdd49a commit f49aa12

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/components/cylc/analysis/BoxPlot.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ export default {
198198
},
199199
xaxis: {
200200
title: {
201-
text: `${upperFirst(getTimingOption(props.timingOption))}`,
201+
text: `${formatChartLabels(props.timingOption)}`,
202202
},
203203
labels: {
204204
formatter: (value) => formatDuration(value, true, props.timingOption)

src/utils/tasks.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,10 @@ export function formatChartLabels (timingOption) {
143143
// Create correct labels for the charts
144144
if (timingOption === 'maxRss') {
145145
return 'Max RSS'
146+
} else if (timingOption === 'cpuTime') {
147+
return 'CPU Time'
146148
} else {
147-
return upperFirst(timingOption) + ' time'
149+
return upperFirst(timingOption) + ' Time'
148150
}
149151
}
150152

0 commit comments

Comments
 (0)