Pool chart: show power of ten of hashrate on desktop
This commit is contained in:
parent
62c9a88235
commit
0a70273456
@ -163,10 +163,8 @@ export class PoolComponent implements OnInit {
|
|||||||
let hashratePowerOfTen: any = selectPowerOfTen(1);
|
let hashratePowerOfTen: any = selectPowerOfTen(1);
|
||||||
let hashrate = ticks[0].data[1];
|
let hashrate = ticks[0].data[1];
|
||||||
|
|
||||||
if (this.isMobile()) {
|
hashratePowerOfTen = selectPowerOfTen(ticks[0].data[1]);
|
||||||
hashratePowerOfTen = selectPowerOfTen(ticks[0].data[1]);
|
hashrate = Math.round(ticks[0].data[1] / hashratePowerOfTen.divider);
|
||||||
hashrate = Math.round(ticks[0].data[1] / hashratePowerOfTen.divider);
|
|
||||||
}
|
|
||||||
|
|
||||||
return `
|
return `
|
||||||
<b style="color: white; margin-left: 18px">${ticks[0].axisValueLabel}</b><br>
|
<b style="color: white; margin-left: 18px">${ticks[0].axisValueLabel}</b><br>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user