Graph place changes
This commit is contained in:
parent
a08290763d
commit
c5897da2f8
@ -157,8 +157,8 @@
|
|||||||
<div class="box_shadow_large bg-white p-3">
|
<div class="box_shadow_large bg-white p-3">
|
||||||
<h2 class="chart_heading mb-2 d-inline-block">{{'home.EXPLORE' | translate}}</h2>
|
<h2 class="chart_heading mb-2 d-inline-block">{{'home.EXPLORE' | translate}}</h2>
|
||||||
<ul class="list-unstyled pl-3">
|
<ul class="list-unstyled pl-3">
|
||||||
<li class="mb-1" *ngIf="this.title!='Total Difficulty'"><a
|
<li class="mb-1" *ngIf="this.title!='Target Difficulty'"><a
|
||||||
routerLink="/chart/total-difficulty">{{'total-difficulty' | translate}}</a></li>
|
routerLink="/chart/target-difficulty">{{'target-difficulty' | translate}}</a></li>
|
||||||
<li class="mb-1" *ngIf="this.title!='Transactions over time'"><a
|
<li class="mb-1" *ngIf="this.title!='Transactions over time'"><a
|
||||||
routerLink="/chart/transactions-over-time">{{'home.TRANSACTIONS_BY_TIME' | translate}}</a></li>
|
routerLink="/chart/transactions-over-time">{{'home.TRANSACTIONS_BY_TIME' | translate}}</a></li>
|
||||||
<li class="mb-1" *ngIf="this.title!='Blocks'"><a
|
<li class="mb-1" *ngIf="this.title!='Blocks'"><a
|
||||||
@ -176,8 +176,8 @@
|
|||||||
routerLink="/chart/transactions-by-date">{{'home.TRANSACTIONS_VS_DATE' | translate}}</a></li>
|
routerLink="/chart/transactions-by-date">{{'home.TRANSACTIONS_VS_DATE' | translate}}</a></li>
|
||||||
<li class="mb-1" *ngIf="this.title!='Stackbar Chart'"><a routerLink="/chart/blocks-by-algorithm">Blocks by Algorithm</a>
|
<li class="mb-1" *ngIf="this.title!='Stackbar Chart'"><a routerLink="/chart/blocks-by-algorithm">Blocks by Algorithm</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="mb-1" *ngIf="this.title!='Target Difficulty'"><a
|
<li class="mb-1" *ngIf="this.title!='Total Difficulty'"><a
|
||||||
routerLink="/chart/target-difficulty">{{'target-difficulty' | translate}}</a></li>
|
routerLink="/chart/total-difficulty">{{'total-difficulty' | translate}}</a></li>
|
||||||
<!-- <li class="mb-1" *ngIf="this.title!='Pie Chart'"><a routerLink="/chart/piechart">Pie Chart</a></li> -->
|
<!-- <li class="mb-1" *ngIf="this.title!='Pie Chart'"><a routerLink="/chart/piechart">Pie Chart</a></li> -->
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div class="col-md-6 col-lg-4 mb-4">
|
<div class="col-md-6 col-lg-4 mb-4">
|
||||||
<div class="box_shadow">
|
<div class="box_shadow">
|
||||||
<div class="blocks">
|
<div class="blocks">
|
||||||
<h2 class="chart_heading d-inline-block">{{'home.TOTAL_DIFFICULTY' | translate}}</h2>
|
<h2 class="chart_heading d-inline-block">{{'home.TARGET_DIFFICULTY' | translate}}</h2>
|
||||||
<!-- <span class="txn_count" *ngIf="this.lg_last.length > 0"><span *ngFor="let l of lg_last">{{
|
<!-- <span class="txn_count" *ngIf="this.lg_last.length > 0"><span *ngFor="let l of lg_last">{{
|
||||||
this.l | number</span>
|
this.l | number</span>
|
||||||
}}</span> -->
|
}}</span> -->
|
||||||
@ -10,26 +10,21 @@
|
|||||||
<div class="chart_show">
|
<div class="chart_show">
|
||||||
<!-- <div class="difficulty_filter day_filter p-0 bg-transparent mt-2">
|
<!-- <div class="difficulty_filter day_filter p-0 bg-transparent mt-2">
|
||||||
<a href="JavaScript:void(0);" (click)="
|
<a href="JavaScript:void(0);" (click)="
|
||||||
Difficultyreq('total', '', '', TdifficultyRange,'all'); selectedTarget12 = 4
|
Difficultyreq('target', '', '', difficultyRange,'all'); selectedItem12 = 4
|
||||||
" id="4" #itemtarget124
|
" id="4" #item124 [ngClass]="{ active: selectedItem12 == item124.id, txt_primay: true }">All</a>
|
||||||
[ngClass]="{ active: selectedTarget12 == itemtarget124.id, txt_primay: true }">All</a>
|
|
||||||
<a href="JavaScript:void(0);" (click)="
|
<a href="JavaScript:void(0);" (click)="
|
||||||
Difficultyreq('total', '', '', TdifficultyRange,'cuckatoo'); selectedTarget12 = 1
|
Difficultyreq('target', '', '', difficultyRange,'cuckatoo'); selectedItem12 = 1
|
||||||
" id="1" #itemtarget121
|
" id="1" #item121 [ngClass]="{ active: selectedItem12 == item121.id, txt_primay: true }">Cuckoo</a>
|
||||||
[ngClass]="{ active: selectedTarget12 == itemtarget121.id, txt_primay: true }">Cuckoo</a>
|
|
||||||
<a href="JavaScript:void(0);" (click)="
|
<a href="JavaScript:void(0);" (click)="
|
||||||
Difficultyreq('total', '', '', TdifficultyRange,'progpow'); selectedTarget12 = 2
|
Difficultyreq('target', '', '', difficultyRange,'progpow'); selectedItem12 = 2
|
||||||
" id="2" #itemtarget122
|
" id="2" #item122 [ngClass]="{ active: selectedItem12 == item122.id, txt_primay: true }">ProgPow</a>
|
||||||
[ngClass]="{ active: selectedTarget12 == itemtarget122.id, txt_primay: true }">ProgPow</a>
|
|
||||||
<a href="JavaScript:void(0);" (click)="
|
<a href="JavaScript:void(0);" (click)="
|
||||||
Difficultyreq('total', '', '', TdifficultyRange,'randomx'); selectedTarget12 = 3
|
Difficultyreq('target', '', '', difficultyRange,'randomx'); selectedItem12 = 3
|
||||||
" id="3" #itemtarget123
|
" id="3" #item123 [ngClass]="{ active: selectedItem12 == item123.id, txt_primay: true }">RandomX</a>
|
||||||
[ngClass]="{ active: selectedTarget12 == itemtarget123.id, txt_primay: true }">RandomX</a>
|
|
||||||
</div> -->
|
</div> -->
|
||||||
<epic-explorer-plotly *ngIf="linearTotalGraphData.data" [data]="linearTotalGraphData.data"
|
<epic-explorer-plotly *ngIf="linearGraphData.data" [data]="linearGraphData.data" [layout]="linearGraphData.layout">
|
||||||
[layout]="linearTotalGraphData.layout">
|
|
||||||
</epic-explorer-plotly>
|
</epic-explorer-plotly>
|
||||||
<div *ngIf="!linearTotalGraphData.data" class="feedback_div news_desc text-center">
|
<div *ngIf="!linearGraphData.data" class="feedback_div news_desc text-center">
|
||||||
<div class="graph_img background_loading mx-auto mb-3"></div>
|
<div class="graph_img background_loading mx-auto mb-3"></div>
|
||||||
<div class=" p-3 bg-white">
|
<div class=" p-3 bg-white">
|
||||||
<p class="mb-2 background_loading para_load"></p>
|
<p class="mb-2 background_loading para_load"></p>
|
||||||
@ -45,33 +40,28 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="day_filter">
|
<div class="day_filter">
|
||||||
<a href="JavaScript:void(0);" (click)="
|
<a href="JavaScript:void(0);" (click)="
|
||||||
Difficultyreq('total', '', '', '1 day',''); selectedTarget = 6; TdifficultyRange = '1 day'
|
Difficultyreq('target', '', '', '1 day',''); selectedItem = 6; difficultyRange = '1 day'
|
||||||
" id="6" #itemtarget6 [ngClass]="{ active: selectedTarget == itemtarget6.id, txt_primay: true }">1 day</a>
|
" id="6" #item6 [ngClass]="{ active: selectedItem == item6.id, txt_primay: true }">1 day</a>
|
||||||
<a href="JavaScript:void(0);" (click)="
|
<a href="JavaScript:void(0);" (click)="
|
||||||
Difficultyreq('total', '', '', '1 week',''); selectedTarget = 1; TdifficultyRange = '1 week'
|
Difficultyreq('target', '', '', '1 week',''); selectedItem = 1; difficultyRange = '1 week'
|
||||||
" id="1" #itemtarget1 [ngClass]="{ active: selectedTarget == itemtarget1.id, txt_primay: true }">1
|
" id="1" #item1 [ngClass]="{ active: selectedItem == item1.id, txt_primay: true }">1 {{'home.WEEK' | translate}}</a>
|
||||||
{{'home.WEEK' | translate}}</a>
|
|
||||||
<!-- <a href="JavaScript:void(0);" (click)="
|
<!-- <a href="JavaScript:void(0);" (click)="
|
||||||
Difficultyreq('total', '', '', '15 days',''); selectedTarget = 2; TdifficultyRange = '15 days'
|
Difficultyreq('target', '', '', '15 days',''); selectedItem = 2; difficultyRange = '15 days'
|
||||||
" id="2" #itemtarget2 [ngClass]="{ active: selectedTarget == itemtarget2.id, day15_txt: true }">15
|
" id="2" #item2 [ngClass]="{ active: selectedItem == item2.id, day15_txt: true }">15 {{'home.DAYS' | translate}}</a> -->
|
||||||
{{'home.DAYS' | translate}}</a> -->
|
|
||||||
<a href="JavaScript:void(0);" (click)="
|
<a href="JavaScript:void(0);" (click)="
|
||||||
Difficultyreq('total', '', '', '30 days',''); selectedTarget = 3; TdifficultyRange = '30 days'
|
Difficultyreq('target', '', '', '30 days',''); selectedItem = 3; difficultyRange = '30 days'
|
||||||
" id="3" #itemtarget3 [ngClass]="{ active: selectedTarget == itemtarget3.id, day30_txt: true }">30
|
" id="3" #item3 [ngClass]="{ active: selectedItem == item3.id, day30_txt: true }">30 {{'home.DAYS' | translate}}</a>
|
||||||
{{'home.DAYS' | translate}}</a>
|
|
||||||
<a href="JavaScript:void(0);" (click)="
|
<a href="JavaScript:void(0);" (click)="
|
||||||
Difficultyreq('total', '', '', '60 days',''); selectedTarget = 4; TdifficultyRange = '60 days'
|
Difficultyreq('target', '', '', '60 days',''); selectedItem = 4; difficultyRange = '60 days'
|
||||||
" id="4" #itemtarget4 [ngClass]="{ active: selectedTarget == itemtarget4.id, day60_txt: true }">60
|
" id="4" #item4 [ngClass]="{ active: selectedItem == item4.id, day60_txt: true }">60 {{'home.DAYS' | translate}}</a>
|
||||||
{{'home.DAYS' | translate}}</a>
|
|
||||||
<a href="JavaScript:void(0);" (click)="
|
<a href="JavaScript:void(0);" (click)="
|
||||||
Difficultyreq('total', '', '', '3 months',''); selectedTarget = 5; TdifficultyRange = '3 months'
|
Difficultyreq('target', '', '', '3 months',''); selectedItem = 5; difficultyRange = '3 months'
|
||||||
" id="5" #itemtarget5 [ngClass]="{ active: selectedTarget == itemtarget5.id, day3m_txt: true }">3
|
" id="5" #item5 [ngClass]="{ active: selectedItem == item5.id, day3m_txt: true }">3 {{'home.MONTHS' | translate}}</a>
|
||||||
{{'home.MONTHS' | translate}}</a>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="explore_all text-right">
|
<div class="explore_all text-right">
|
||||||
|
|
||||||
<a routerLink="/chart/total-difficulty"><span class="text-uppercase">{{'home.EXPLORE_IT' | translate}} <i
|
<a routerLink="/chart/target-difficulty"><span class="text-uppercase">{{'home.EXPLORE_IT' | translate}} <i
|
||||||
class="fa fa-long-arrow-right"></i></span></a>
|
class="fa fa-long-arrow-right"></i></span></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -524,7 +514,7 @@
|
|||||||
<div *ngIf="viewchartvar" class="col-md-6 col-lg-4 mb-4">
|
<div *ngIf="viewchartvar" class="col-md-6 col-lg-4 mb-4">
|
||||||
<div class="box_shadow">
|
<div class="box_shadow">
|
||||||
<div class="blocks">
|
<div class="blocks">
|
||||||
<h2 class="chart_heading d-inline-block">{{'home.TARGET_DIFFICULTY' | translate}}</h2>
|
<h2 class="chart_heading d-inline-block">{{'home.TOTAL_DIFFICULTY' | translate}}</h2>
|
||||||
<!-- <span class="txn_count" *ngIf="this.lg_last.length > 0"><span *ngFor="let l of lg_last">{{
|
<!-- <span class="txn_count" *ngIf="this.lg_last.length > 0"><span *ngFor="let l of lg_last">{{
|
||||||
this.l | number</span>
|
this.l | number</span>
|
||||||
}}</span> -->
|
}}</span> -->
|
||||||
@ -532,21 +522,26 @@
|
|||||||
<div class="chart_show">
|
<div class="chart_show">
|
||||||
<!-- <div class="difficulty_filter day_filter p-0 bg-transparent mt-2">
|
<!-- <div class="difficulty_filter day_filter p-0 bg-transparent mt-2">
|
||||||
<a href="JavaScript:void(0);" (click)="
|
<a href="JavaScript:void(0);" (click)="
|
||||||
Difficultyreq('target', '', '', difficultyRange,'all'); selectedItem12 = 4
|
Difficultyreq('total', '', '', TdifficultyRange,'all'); selectedTarget12 = 4
|
||||||
" id="4" #item124 [ngClass]="{ active: selectedItem12 == item124.id, txt_primay: true }">All</a>
|
" id="4" #itemtarget124
|
||||||
|
[ngClass]="{ active: selectedTarget12 == itemtarget124.id, txt_primay: true }">All</a>
|
||||||
<a href="JavaScript:void(0);" (click)="
|
<a href="JavaScript:void(0);" (click)="
|
||||||
Difficultyreq('target', '', '', difficultyRange,'cuckatoo'); selectedItem12 = 1
|
Difficultyreq('total', '', '', TdifficultyRange,'cuckatoo'); selectedTarget12 = 1
|
||||||
" id="1" #item121 [ngClass]="{ active: selectedItem12 == item121.id, txt_primay: true }">Cuckoo</a>
|
" id="1" #itemtarget121
|
||||||
|
[ngClass]="{ active: selectedTarget12 == itemtarget121.id, txt_primay: true }">Cuckoo</a>
|
||||||
<a href="JavaScript:void(0);" (click)="
|
<a href="JavaScript:void(0);" (click)="
|
||||||
Difficultyreq('target', '', '', difficultyRange,'progpow'); selectedItem12 = 2
|
Difficultyreq('total', '', '', TdifficultyRange,'progpow'); selectedTarget12 = 2
|
||||||
" id="2" #item122 [ngClass]="{ active: selectedItem12 == item122.id, txt_primay: true }">ProgPow</a>
|
" id="2" #itemtarget122
|
||||||
|
[ngClass]="{ active: selectedTarget12 == itemtarget122.id, txt_primay: true }">ProgPow</a>
|
||||||
<a href="JavaScript:void(0);" (click)="
|
<a href="JavaScript:void(0);" (click)="
|
||||||
Difficultyreq('target', '', '', difficultyRange,'randomx'); selectedItem12 = 3
|
Difficultyreq('total', '', '', TdifficultyRange,'randomx'); selectedTarget12 = 3
|
||||||
" id="3" #item123 [ngClass]="{ active: selectedItem12 == item123.id, txt_primay: true }">RandomX</a>
|
" id="3" #itemtarget123
|
||||||
|
[ngClass]="{ active: selectedTarget12 == itemtarget123.id, txt_primay: true }">RandomX</a>
|
||||||
</div> -->
|
</div> -->
|
||||||
<epic-explorer-plotly *ngIf="linearGraphData.data" [data]="linearGraphData.data" [layout]="linearGraphData.layout">
|
<epic-explorer-plotly *ngIf="linearTotalGraphData.data" [data]="linearTotalGraphData.data"
|
||||||
|
[layout]="linearTotalGraphData.layout">
|
||||||
</epic-explorer-plotly>
|
</epic-explorer-plotly>
|
||||||
<div *ngIf="!linearGraphData.data" class="feedback_div news_desc text-center">
|
<div *ngIf="!linearTotalGraphData.data" class="feedback_div news_desc text-center">
|
||||||
<div class="graph_img background_loading mx-auto mb-3"></div>
|
<div class="graph_img background_loading mx-auto mb-3"></div>
|
||||||
<div class=" p-3 bg-white">
|
<div class=" p-3 bg-white">
|
||||||
<p class="mb-2 background_loading para_load"></p>
|
<p class="mb-2 background_loading para_load"></p>
|
||||||
@ -562,28 +557,33 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="day_filter">
|
<div class="day_filter">
|
||||||
<a href="JavaScript:void(0);" (click)="
|
<a href="JavaScript:void(0);" (click)="
|
||||||
Difficultyreq('target', '', '', '1 day',''); selectedItem = 6; difficultyRange = '1 day'
|
Difficultyreq('total', '', '', '1 day',''); selectedTarget = 6; TdifficultyRange = '1 day'
|
||||||
" id="6" #item6 [ngClass]="{ active: selectedItem == item6.id, txt_primay: true }">1 day</a>
|
" id="6" #itemtarget6 [ngClass]="{ active: selectedTarget == itemtarget6.id, txt_primay: true }">1 day</a>
|
||||||
<a href="JavaScript:void(0);" (click)="
|
<a href="JavaScript:void(0);" (click)="
|
||||||
Difficultyreq('target', '', '', '1 week',''); selectedItem = 1; difficultyRange = '1 week'
|
Difficultyreq('total', '', '', '1 week',''); selectedTarget = 1; TdifficultyRange = '1 week'
|
||||||
" id="1" #item1 [ngClass]="{ active: selectedItem == item1.id, txt_primay: true }">1 {{'home.WEEK' | translate}}</a>
|
" id="1" #itemtarget1 [ngClass]="{ active: selectedTarget == itemtarget1.id, txt_primay: true }">1
|
||||||
|
{{'home.WEEK' | translate}}</a>
|
||||||
<!-- <a href="JavaScript:void(0);" (click)="
|
<!-- <a href="JavaScript:void(0);" (click)="
|
||||||
Difficultyreq('target', '', '', '15 days',''); selectedItem = 2; difficultyRange = '15 days'
|
Difficultyreq('total', '', '', '15 days',''); selectedTarget = 2; TdifficultyRange = '15 days'
|
||||||
" id="2" #item2 [ngClass]="{ active: selectedItem == item2.id, day15_txt: true }">15 {{'home.DAYS' | translate}}</a> -->
|
" id="2" #itemtarget2 [ngClass]="{ active: selectedTarget == itemtarget2.id, day15_txt: true }">15
|
||||||
|
{{'home.DAYS' | translate}}</a> -->
|
||||||
<a href="JavaScript:void(0);" (click)="
|
<a href="JavaScript:void(0);" (click)="
|
||||||
Difficultyreq('target', '', '', '30 days',''); selectedItem = 3; difficultyRange = '30 days'
|
Difficultyreq('total', '', '', '30 days',''); selectedTarget = 3; TdifficultyRange = '30 days'
|
||||||
" id="3" #item3 [ngClass]="{ active: selectedItem == item3.id, day30_txt: true }">30 {{'home.DAYS' | translate}}</a>
|
" id="3" #itemtarget3 [ngClass]="{ active: selectedTarget == itemtarget3.id, day30_txt: true }">30
|
||||||
|
{{'home.DAYS' | translate}}</a>
|
||||||
<a href="JavaScript:void(0);" (click)="
|
<a href="JavaScript:void(0);" (click)="
|
||||||
Difficultyreq('target', '', '', '60 days',''); selectedItem = 4; difficultyRange = '60 days'
|
Difficultyreq('total', '', '', '60 days',''); selectedTarget = 4; TdifficultyRange = '60 days'
|
||||||
" id="4" #item4 [ngClass]="{ active: selectedItem == item4.id, day60_txt: true }">60 {{'home.DAYS' | translate}}</a>
|
" id="4" #itemtarget4 [ngClass]="{ active: selectedTarget == itemtarget4.id, day60_txt: true }">60
|
||||||
|
{{'home.DAYS' | translate}}</a>
|
||||||
<a href="JavaScript:void(0);" (click)="
|
<a href="JavaScript:void(0);" (click)="
|
||||||
Difficultyreq('target', '', '', '3 months',''); selectedItem = 5; difficultyRange = '3 months'
|
Difficultyreq('total', '', '', '3 months',''); selectedTarget = 5; TdifficultyRange = '3 months'
|
||||||
" id="5" #item5 [ngClass]="{ active: selectedItem == item5.id, day3m_txt: true }">3 {{'home.MONTHS' | translate}}</a>
|
" id="5" #itemtarget5 [ngClass]="{ active: selectedTarget == itemtarget5.id, day3m_txt: true }">3
|
||||||
|
{{'home.MONTHS' | translate}}</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="explore_all text-right">
|
<div class="explore_all text-right">
|
||||||
|
|
||||||
<a routerLink="/chart/target-difficulty"><span class="text-uppercase">{{'home.EXPLORE_IT' | translate}} <i
|
<a routerLink="/chart/total-difficulty"><span class="text-uppercase">{{'home.EXPLORE_IT' | translate}} <i
|
||||||
class="fa fa-long-arrow-right"></i></span></a>
|
class="fa fa-long-arrow-right"></i></span></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user