Pridanie statistik v grafe po 1 dni a zvacsenie ikon

This commit is contained in:
2021-01-16 15:17:37 +01:00
parent 70e7fbcc3a
commit 90699640c4
3 changed files with 20 additions and 6 deletions

View File

@@ -44,7 +44,11 @@ export default {
if (that.range) {
for (var i = 0; i < response.data.length; i++) {
var row = response.data[i];
let time = moment(row.time).format('LLL');
if (response.config.params.range == '1d')
var fmt = 'LL';
else
var fmt = 'LLL';
let time = moment(row.time).format(fmt);
let mean = null;
if (row.mean != null) {
mean = row.mean.toFixed(2);