[Client] stats - display ave. speed labels only if 1 sport is displayed

This commit is contained in:
Sam
2021-11-28 11:21:02 +01:00
parent d346dba3bb
commit a52ce1b6a5
9 changed files with 18 additions and 16 deletions

View File

@ -118,7 +118,9 @@
return props.fullStats && context.chart.chartArea.width < 300
? false
: props.displayedData === 'average_speed'
? 'auto'
? props.displayedSportIds.length == 1
? 'auto'
: false
: true
},
formatter: function (value, context) {