53 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
		
		
			
		
	
	
			53 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
|  | <app-indexing-progress></app-indexing-progress> | ||
|  | 
 | ||
|  | <div class="full-container"> | ||
|  |   <div class="card-header mb-0 mb-md-4"> | ||
|  |     <span i18n="mining.block-prediction-accuracy">Block Predictions Accuracy</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="(statsObservable$ | async) as stats"> | ||
|  |       <div class="btn-group btn-group-toggle" ngbRadioGroup name="radioBasic" formControlName="dateSpan"> | ||
|  |         <label ngbButtonLabel class="btn-primary btn-sm" *ngIf="stats.blockCount >= 144"> | ||
|  |           <input ngbButton type="radio" [value]="'24h'" fragment="24h" [routerLink]="['/graphs/mining/block-predictions' | relativeUrl]"> 24h | ||
|  |         </label> | ||
|  |         <label ngbButtonLabel class="btn-primary btn-sm" *ngIf="stats.blockCount >= 432"> | ||
|  |           <input ngbButton type="radio" [value]="'3d'" fragment="3d" [routerLink]="['/graphs/mining/block-predictions' | relativeUrl]"> 3D | ||
|  |         </label> | ||
|  |         <label ngbButtonLabel class="btn-primary btn-sm" *ngIf="stats.blockCount >= 1008"> | ||
|  |           <input ngbButton type="radio" [value]="'1w'" fragment="1w" [routerLink]="['/graphs/mining/block-predictions' | relativeUrl]"> 1W | ||
|  |         </label> | ||
|  |         <label ngbButtonLabel class="btn-primary btn-sm" *ngIf="stats.blockCount >= 4320"> | ||
|  |           <input ngbButton type="radio" [value]="'1m'" fragment="1m" [routerLink]="['/graphs/mining/block-predictions' | relativeUrl]"> 1M | ||
|  |         </label> | ||
|  |         <label ngbButtonLabel class="btn-primary btn-sm" *ngIf="stats.blockCount >= 12960"> | ||
|  |           <input ngbButton type="radio" [value]="'3m'" fragment="3m" [routerLink]="['/graphs/mining/block-predictions' | relativeUrl]"> 3M | ||
|  |         </label> | ||
|  |         <label ngbButtonLabel class="btn-primary btn-sm" *ngIf="stats.blockCount >= 25920"> | ||
|  |           <input ngbButton type="radio" [value]="'6m'" fragment="6m" [routerLink]="['/graphs/mining/block-predictions' | relativeUrl]"> 6M | ||
|  |         </label> | ||
|  |         <label ngbButtonLabel class="btn-primary btn-sm" *ngIf="stats.blockCount >= 52560"> | ||
|  |           <input ngbButton type="radio" [value]="'1y'" fragment="1y" [routerLink]="['/graphs/mining/block-predictions' | relativeUrl]"> 1Y | ||
|  |         </label> | ||
|  |         <label ngbButtonLabel class="btn-primary btn-sm" *ngIf="stats.blockCount >= 105120"> | ||
|  |           <input ngbButton type="radio" [value]="'2y'" fragment="2y" [routerLink]="['/graphs/mining/block-predictions' | relativeUrl]"> 2Y | ||
|  |         </label> | ||
|  |         <label ngbButtonLabel class="btn-primary btn-sm" *ngIf="stats.blockCount >= 157680"> | ||
|  |           <input ngbButton type="radio" [value]="'3y'" fragment="3y" [routerLink]="['/graphs/mining/block-predictions' | relativeUrl]"> 3Y | ||
|  |         </label> | ||
|  |         <label ngbButtonLabel class="btn-primary btn-sm" *ngIf="stats.blockCount > 157680"> | ||
|  |           <input ngbButton type="radio" [value]="'all'" fragment="all" [routerLink]="['/graphs/mining/block-predictions' | relativeUrl]"> ALL | ||
|  |         </label> | ||
|  |       </div> | ||
|  |     </form> | ||
|  |   </div> | ||
|  | 
 | ||
|  |   <div class="chart" 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> |