Index new hashrates once every 24 hours

This commit is contained in:
nymkappa
2022-02-21 12:22:20 +09:00
parent 358604ad85
commit e61df324ea
7 changed files with 92 additions and 68 deletions

View File

@@ -66,15 +66,15 @@ export class HashrateChartComponent implements OnInit {
};
}),
);
}),
share()
);
}),
share()
);
}
prepareChartOptions(data) {
this.chartOptions = {
title: {
text: this.widget? '' : $localize`:@@mining.hashrate:Hashrate`,
text: this.widget ? '' : $localize`:@@mining.hashrate:Hashrate`,
left: 'center',
textStyle: {
color: '#FFF',
@@ -102,7 +102,7 @@ export class HashrateChartComponent implements OnInit {
giga: Math.pow(10, 9),
mega: Math.pow(10, 6),
kilo: Math.pow(10, 3),
}
};
let selectedPowerOfTen = { divider: powerOfTen.exa, unit: 'E' };
if (val < powerOfTen.mega) {
@@ -135,9 +135,11 @@ export class HashrateChartComponent implements OnInit {
type: 'line',
smooth: false,
lineStyle: {
width: 3,
width: 2,
},
areaStyle: {
opacity: 0.25
},
areaStyle: {},
},
dataZoom: this.widget ? null : [{
type: 'inside',