From a6badfa40a8ded935cf1a2fc4873004c5295e82d Mon Sep 17 00:00:00 2001 From: Simon Lindh Date: Thu, 21 Nov 2019 11:58:29 +0800 Subject: [PATCH] Added virtual bytes pipe for mempool graph in television view. fixes #14 fixes #12 --- frontend/src/app/television/television.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/television/television.component.ts b/frontend/src/app/television/television.component.ts index 3e6ab12db..84d6866de 100644 --- a/frontend/src/app/television/television.component.ts +++ b/frontend/src/app/television/television.component.ts @@ -1,7 +1,7 @@ import { Component, OnInit, LOCALE_ID, Inject, Renderer2 } from '@angular/core'; import { ApiService } from '../services/api.service'; import { formatDate } from '@angular/common'; -import { BytesPipe } from '../shared/pipes/bytes-pipe/bytes.pipe'; +import { VbytesPipe } from '../shared/pipes/bytes-pipe/vbytes.pipe'; import * as Chartist from 'chartist'; import { IMempoolStats } from '../blockchain/interfaces'; @@ -22,7 +22,7 @@ export class TelevisionComponent implements OnInit { constructor( private apiService: ApiService, @Inject(LOCALE_ID) private locale: string, - private bytesPipe: BytesPipe, + private vbytesPipe: VbytesPipe, private memPoolService: MemPoolService, private renderer: Renderer2, ) { } @@ -48,7 +48,7 @@ export class TelevisionComponent implements OnInit { }, axisY: { labelInterpolationFnc: (value: number): any => { - return this.bytesPipe.transform(value); + return this.vbytesPipe.transform(value, 2); }, offset: 160 },