fix: format tooltip values to one decimal place
This commit is contained in:
+1
-1
@@ -525,7 +525,7 @@ function Air({name, sensorName, end, duration}) {
|
||||
|
||||
<CartesianGrid strokeDasharray='3 3'/>
|
||||
<Tooltip
|
||||
formatter={(v, name) => v + units[name]}
|
||||
formatter={(v, name) => v.toFixed(1) + units[name]}
|
||||
labelFormatter={timeStr => moment(timeStr).tz('America/Edmonton').format('ddd MMM DD h:mm A')}
|
||||
separator=': '
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user