Hover text added

This commit is contained in:
raja.blaze 2019-08-19 15:59:18 +05:30
parent 40df505308
commit aadb7453e9
4 changed files with 35 additions and 13 deletions

View File

@ -44,6 +44,10 @@
"TRANSACTIONS_BY_TIME" : "Transaktionen im Zeitverlauf",
"BLOCKS" : "Blöcke",
"BLOCKSINTERVAL" : "Intervall-S / W-Blöcke",
"SUPPLY_GROWTH_HOVER" : "Heute Angebotswachstum",
"BOCKS_COUNT_HOVER" : "Heute Block Count",
"TRANSACTION_FEE_HOVER" : "Heute Transaktionsgebühren insgesamt",
"BLOCK_INTERVAL_HOVER" : "Heute Blockintervall in Sekunden",
"BLOCK" : "Block",
"BLOCKS_MINED" : "Blöcke abgebaut",
"TRANSACTION_FEES" : "Transkationsgebühren",

View File

@ -44,6 +44,10 @@
"TRANSACTIONS_BY_TIME" : "Transactions over time",
"BLOCKS" : "Blocks",
"BLOCKSINTERVAL" : "Interval B/W Blocks",
"SUPPLY_GROWTH_HOVER" : "Today Supply Growth",
"BOCKS_COUNT_HOVER" : "Today Block Count",
"TRANSACTION_FEE_HOVER" : "Today Total Transaction Fees",
"BLOCK_INTERVAL_HOVER" : "Today Block Interval in Secs",
"BLOCK" : "Block",
"BLOCKS_MINED" : "Blocks Mined",
"TRANSACTION_FEES" : "Transaction Fees",

View File

@ -115,7 +115,7 @@
<div class="box_shadow">
<div class="blocks">
<h2 class="chart_heading d-inline-block">{{'home.BLOCKS' | translate}}</h2>
<span class="txn_count" *ngIf="this.brg_last">{{
<span class="txn_count" title="{{'home.BOCKS_COUNT_HOVER' | translate}}" *ngIf="this.brg_last">{{
this.brg_last | number
}}</span>
<div class="chart_show">
@ -170,7 +170,7 @@
<div class="box_shadow">
<div class="blocks">
<h2 class="chart_heading d-inline-block">{{'home.TRANSACTION_FEES' | translate}}</h2>
<span class="txn_count" *ngIf="this.fg_last">{{this.fg_last |number}}</span>
<span class="txn_count" title="{{'home.TRANSACTION_FEE_HOVER' | translate}}" *ngIf="this.fg_last">{{this.fg_last |number}}</span>
<div class="chart_show">
<epic-explorer-plotly *ngIf="transcationGraphData.data" [data]="transcationGraphData.data"
@ -216,7 +216,7 @@
<div class="box_shadow">
<div class="blocks">
<h2 class="chart_heading d-inline-block">{{'home.SUPPLY_GROWTH' | translate}}</h2>
<span class="txn_count" *ngIf="this.gg_last">{{
<span class="txn_count" title="{{'home.SUPPLY_GROWTH_HOVER' | translate}}" *ngIf="this.gg_last">{{
this.gg_last | number
}}</span>
<div class="chart_show">
@ -262,7 +262,7 @@
<div class="box_shadow">
<div class="blocks">
<h2 class="chart_heading d-inline-block">{{'home.BLOCKS_MINED' | translate}}</h2>
<span class="txn_count" *ngIf="this.dg_last">{{
<span class="txn_count" title="{{'home.BOCKS_COUNT_HOVER' | translate}}" *ngIf="this.dg_last">{{
this.dg_last | number
}}</span>
@ -352,7 +352,7 @@
<div class="box_shadow">
<div class="blocks">
<h2 class="chart_heading d-inline-block">Blocks by Algorithm</h2>
<span class="txn_count" *ngIf="this.sg_last">{{
<span class="txn_count" title="{{'home.BOCKS_COUNT_HOVER' | translate}}" *ngIf="this.sg_last">{{
this.sg_last | number
}}</span>
@ -447,7 +447,7 @@
<div class="box_shadow">
<div class="blocks">
<h2 class="chart_heading d-inline-block">{{'home.BLOCK_INTERVAL' | translate}}</h2>
<span class="txn_count" *ngIf="this.ag_last">{{ this.ag_last | number }} sec</span>
<span class="txn_count" title="{{'home.BLOCK_INTERVAL_HOVER' | translate}}" *ngIf="this.ag_last">{{ this.ag_last | number }} sec</span>
<div class="chart_show">
<epic-explorer-plotly *ngIf="areaGraphData.data" [data]="areaGraphData.data" [layout]="areaGraphData.layout">

View File

@ -167,8 +167,9 @@ export class GraphListComponent implements OnInit {
let Cuckoo = res.response.Cuckoo;
let ProgPow = res.response.ProgPow;
let RandomX = res.response.RandomX;
this.sg_last =
RandomX[RandomX.length - 1];
let today_date_index = sDate.indexOf(moment(Date.now()).format('YYYY-MM-DD'));
this.sg_last = RandomX[today_date_index] + ProgPow[today_date_index] + Cuckoo[today_date_index];
//this.sg_last = RandomX[RandomX.length - 1];
this.stackchartFunc(
sDate,
Cuckoo,
@ -299,7 +300,11 @@ export class GraphListComponent implements OnInit {
let Cuckooper = res.response.Cuckooper;
let RandomXper = res.response.RandomXper;
this.dg_last = RandomXper[RandomXper.length - 1];
let today_date_index = mDate.indexOf(moment(Date.now()).format('YYYY-MM-DD'));
this.dg_last = ProgPow[today_date_index] + Cuckoo[today_date_index] + RandomX[today_date_index];
//this.dg_last = RandomXper[RandomXper.length - 1];
this.blockminedFunc(
mDate,
ProgPow,
@ -330,7 +335,9 @@ export class GraphListComponent implements OnInit {
if (res['status'] == 200) {
let bDate = res.response.date;
let bPeriod = res.response.period;
this.ag_last = bPeriod[bPeriod.length - 1];
let today_date_index = bDate.indexOf(moment(Date.now()).format('YYYY-MM-DD'));
this.ag_last = bPeriod[today_date_index];
//this.ag_last = bPeriod[bPeriod.length - 1];
this.blockspersecFunc(bDate, bPeriod);
resolve();
}
@ -354,7 +361,10 @@ export class GraphListComponent implements OnInit {
let gDate = res.response.date;
let gReward = res.response.total_reward_per_day;
let gaddedreward = res.response.addedreward;
this.gg_last = gReward[gReward.length - 1];
let today_date_index = gDate.indexOf(moment(Date.now()).format('YYYY-MM-DD'));
//let today_date_index = gDate.indexOf('2019-08-06');
this.gg_last = gReward[today_date_index];
//this.gg_last = gReward[gReward.length - 1];
this.growthFunc(gDate, gReward, gaddedreward);
resolve();
}
@ -377,7 +387,9 @@ export class GraphListComponent implements OnInit {
if (res['status'] == 200) {
let TfDate = res.response.Date;
let TfFee = res.response.Fee;
this.fg_last = TfFee[TfFee.length - 1];
let today_date_index = TfDate.indexOf(moment(Date.now()).format('YYYY-MM-DD'));
this.fg_last = TfFee[today_date_index];
//this.fg_last = TfFee[TfFee.length - 1];
this.transcationfeeFunc(TfDate, TfFee);
resolve();
}
@ -566,7 +578,9 @@ export class GraphListComponent implements OnInit {
let DifficultychartDate = res.response.Date;
let BlocksChartDate = res.response.blockDate;
let Blockval = res.response.Blocks;
this.brg_last = Blockval[Blockval.length - 1];
let today_date_index = BlocksChartDate.indexOf(moment(Date.now()).format('YYYY-MM-DD'));
this.brg_last = Blockval[today_date_index];
//this.brg_last = Blockval[Blockval.length - 1];
this.totalBlocksFunc(BlocksChartDate, Blockval);
resolve();
}