2022-07-06 13:20:37 +02:00
|
|
|
<div [class]="widget === false ? 'full-container' : ''">
|
|
|
|
|
|
|
|
<div class="card-header mb-0 mb-md-4" [style]="widget ? 'display:none' : ''">
|
|
|
|
<span i18n="mining.nodes-networks">Nodes count by network</span>
|
|
|
|
<button class="btn" style="margin: 0 0 4px 0px" (click)="onSaveChart()">
|
|
|
|
<fa-icon [icon]="['fas', 'download']" [fixedWidth]="true"></fa-icon>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<form [formGroup]="radioGroupForm" class="formRadioGroup" *ngIf="(nodesNetworkObservable$ | async) as stats">
|
|
|
|
<div class="btn-group btn-group-toggle" ngbRadioGroup name="radioBasic" formControlName="dateSpan">
|
2022-07-06 15:15:08 +02:00
|
|
|
<label ngbButtonLabel class="btn-primary btn-sm" *ngIf="stats.days >= 30">
|
|
|
|
<input ngbButton type="radio" [value]="'1m'" fragment="1m" [routerLink]="['/graphs/lightning/nodes-networks' | relativeUrl]"> 1M
|
2022-07-06 13:20:37 +02:00
|
|
|
</label>
|
2022-07-06 15:15:08 +02:00
|
|
|
<label ngbButtonLabel class="btn-primary btn-sm" *ngIf="stats.days >= 90">
|
|
|
|
<input ngbButton type="radio" [value]="'3m'" fragment="3m" [routerLink]="['/graphs/lightning/nodes-networks' | relativeUrl]"> 3M
|
2022-07-06 13:20:37 +02:00
|
|
|
</label>
|
2022-07-06 15:15:08 +02:00
|
|
|
<label ngbButtonLabel class="btn-primary btn-sm" *ngIf="stats.days >= 180">
|
|
|
|
<input ngbButton type="radio" [value]="'6m'" fragment="6m" [routerLink]="['/graphs/lightning/nodes-networks' | relativeUrl]"> 6M
|
2022-07-06 13:20:37 +02:00
|
|
|
</label>
|
2022-07-06 15:15:08 +02:00
|
|
|
<label ngbButtonLabel class="btn-primary btn-sm" *ngIf="stats.days >= 365">
|
|
|
|
<input ngbButton type="radio" [value]="'1y'" fragment="1y" [routerLink]="['/graphs/lightning/nodes-networks' | relativeUrl]"> 1Y
|
2022-07-06 13:20:37 +02:00
|
|
|
</label>
|
2022-07-06 15:15:08 +02:00
|
|
|
<label ngbButtonLabel class="btn-primary btn-sm" *ngIf="stats.days >= 730">
|
|
|
|
<input ngbButton type="radio" [value]="'2y'" fragment="2y" [routerLink]="['/graphs/lightning/nodes-networks' | relativeUrl]"> 2Y
|
2022-07-06 13:20:37 +02:00
|
|
|
</label>
|
2022-07-06 15:15:08 +02:00
|
|
|
<label ngbButtonLabel class="btn-primary btn-sm" *ngIf="stats.days >= 1095">
|
|
|
|
<input ngbButton type="radio" [value]="'3y'" fragment="3y" [routerLink]="['/graphs/lightning/nodes-networks' | relativeUrl]"> 3Y
|
2022-07-06 13:20:37 +02:00
|
|
|
</label>
|
2022-07-06 15:15:08 +02:00
|
|
|
<label ngbButtonLabel class="btn-primary btn-sm">
|
|
|
|
<input ngbButton type="radio" [value]="'all'" fragment="all" [routerLink]="['/graphs/lightning/nodes-networks' | relativeUrl]"> ALL
|
2022-07-06 13:20:37 +02:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div [class]="!widget ? 'chart' : 'chart-widget'" echarts [initOpts]="chartInitOptions" [options]="chartOptions" (chartInit)="onChartInit($event)"></div>
|
|
|
|
<div class="text-center loadingGraphs" *ngIf="isLoading">
|
|
|
|
<div class="spinner-border text-light"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|