Format Transaction vBytes per second (vB/s) tooltip value

This commit is contained in:
nymkappa 2022-03-22 16:03:54 +09:00
parent 502ef29e54
commit ff77a8ef47
No known key found for this signature in database
GPG Key ID: E155910B16E8BD04

View File

@ -3,6 +3,7 @@ import { EChartsOption } from 'echarts';
import { OnChanges } from '@angular/core';
import { StorageService } from 'src/app/services/storage.service';
import { formatterXAxis, formatterXAxisLabel } from 'src/app/shared/graphs.utils';
import { formatNumber } from '@angular/common';
@Component({
selector: 'app-incoming-transactions-graph',
@ -116,7 +117,7 @@ export class IncomingTransactionsGraphComponent implements OnInit, OnChanges {
itemFormatted += `<div class="item">
<div class="indicator-container">${colorSpan(item.color)}</div>
<div class="grow"></div>
<div class="value">${item.value[1]} <span class="symbol">vB/s</span></div>
<div class="value">${formatNumber(item.value[1], this.locale, '1.0-0')}<span class="symbol">vB/s</span></div>
</div>`;
}
});