From eefd8104bb3413ef5ce46c8c77bda056808926be Mon Sep 17 00:00:00 2001 From: softsimon Date: Sun, 26 Sep 2021 22:57:37 +0400 Subject: [PATCH] L-BTC graph: Minor styling update --- .../lbtc-pegs-graph/lbtc-pegs-graph.component.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/components/lbtc-pegs-graph/lbtc-pegs-graph.component.ts b/frontend/src/app/components/lbtc-pegs-graph/lbtc-pegs-graph.component.ts index c3d4bd894..84aacb8c4 100644 --- a/frontend/src/app/components/lbtc-pegs-graph/lbtc-pegs-graph.component.ts +++ b/frontend/src/app/components/lbtc-pegs-graph/lbtc-pegs-graph.component.ts @@ -1,12 +1,10 @@ -import { Component, OnInit, Inject, LOCALE_ID, ChangeDetectionStrategy, Output, EventEmitter, Input, OnChanges } from '@angular/core'; +import { Component, Inject, LOCALE_ID, ChangeDetectionStrategy, Input, OnChanges } from '@angular/core'; import { formatDate, formatNumber } from '@angular/common'; import { EChartsOption } from 'echarts'; -import { ApiService } from 'src/app/services/api.service'; -import { map } from 'rxjs/operators'; -import { Observable } from 'rxjs'; @Component({ selector: 'app-lbtc-pegs-graph', + styles: [`::ng-deep .tx-wrapper-tooltip-chart { width: 135px; }`], templateUrl: './lbtc-pegs-graph.component.html', changeDetection: ChangeDetectionStrategy.OnPush, }) @@ -102,6 +100,7 @@ export class LbtcPegsGraphComponent implements OnChanges { fontSize: 11, lineHeight: 12 }, + boundaryGap: false, data: labels.map((value: any) => `${formatDate(value, 'MMM\ny', this.locale)}`), }, yAxis: {