Fix USD y axis overflow in address graph
This commit is contained in:
		
							parent
							
								
									073fe8e8cd
								
							
						
					
					
						commit
						7516db0c71
					
				| @ -10,7 +10,6 @@ import { RelativeUrlPipe } from '@app/shared/pipes/relative-url/relative-url.pip | |||||||
| import { StateService } from '@app/services/state.service'; | import { StateService } from '@app/services/state.service'; | ||||||
| import { PriceService } from '@app/services/price.service'; | import { PriceService } from '@app/services/price.service'; | ||||||
| import { FiatCurrencyPipe } from '@app/shared/pipes/fiat-currency.pipe'; | import { FiatCurrencyPipe } from '@app/shared/pipes/fiat-currency.pipe'; | ||||||
| import { FiatShortenerPipe } from '@app/shared/pipes/fiat-shortener.pipe'; |  | ||||||
| 
 | 
 | ||||||
| const periodSeconds = { | const periodSeconds = { | ||||||
|   '1d': (60 * 60 * 24), |   '1d': (60 * 60 * 24), | ||||||
| @ -77,7 +76,6 @@ export class AddressGraphComponent implements OnChanges, OnDestroy { | |||||||
|     private relativeUrlPipe: RelativeUrlPipe, |     private relativeUrlPipe: RelativeUrlPipe, | ||||||
|     private priceService: PriceService, |     private priceService: PriceService, | ||||||
|     private fiatCurrencyPipe: FiatCurrencyPipe, |     private fiatCurrencyPipe: FiatCurrencyPipe, | ||||||
|     private fiatShortenerPipe: FiatShortenerPipe, |  | ||||||
|     private zone: NgZone, |     private zone: NgZone, | ||||||
|   ) {} |   ) {} | ||||||
| 
 | 
 | ||||||
| @ -336,7 +334,7 @@ export class AddressGraphComponent implements OnChanges, OnDestroy { | |||||||
|           axisLabel: { |           axisLabel: { | ||||||
|             color: 'rgb(110, 112, 121)', |             color: 'rgb(110, 112, 121)', | ||||||
|             formatter: function(val) { |             formatter: function(val) { | ||||||
|               return this.fiatShortenerPipe.transform(val, null, 'USD'); |               return `$${this.amountShortenerPipe.transform(val, 0)}`; | ||||||
|             }.bind(this) |             }.bind(this) | ||||||
|           }, |           }, | ||||||
|           splitLine: { |           splitLine: { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user