display only 3 decimals for distance on month statistics - fix #24
This commit is contained in:
parent
a05ccbdd10
commit
35e80de953
@ -101,7 +101,9 @@ class Statistics extends React.Component {
|
|||||||
dataKey={s.label}
|
dataKey={s.label}
|
||||||
formatter={value => displayedData === 'duration'
|
formatter={value => displayedData === 'duration'
|
||||||
? format(formatDuration(value), 'HH:mm')
|
? format(formatDuration(value), 'HH:mm')
|
||||||
: value
|
: displayedData === 'distance'
|
||||||
|
? value.toFixed(3)
|
||||||
|
: value
|
||||||
}
|
}
|
||||||
stackId="a"
|
stackId="a"
|
||||||
fill={activityColors[i]}
|
fill={activityColors[i]}
|
||||||
|
Loading…
Reference in New Issue
Block a user