Commit - Hide popup and fix graphs

This commit is contained in:
shunmugam 2019-10-18 13:03:50 +05:30
parent 9d980fe09e
commit da269fd031
3 changed files with 24 additions and 2 deletions

View File

@ -898,7 +898,7 @@ LEFT JOIN (select block_id, count(block_id) as block_id_count from blockchain_ou
totaloutput = [];
TransactionHeatmapChartQuery.forEach(e => {
if(moment(e.hour).format('YYYY-MM-DD') >= moment('2019-09-02').format('YYYY-MM-DD'))
if(moment(e.hour).format('YYYY-MM-DD') >= moment('2019-09-03').format('YYYY-MM-DD'))
{
date.push(moment(e.hour).format('YYYY-MM-DD'));
totalinput.push(e.totalinput != null ? e.totalinput : 0);

View File

@ -103,7 +103,7 @@
</div>
</div>
</nav>
<p *ngIf="showContent" class="note_tag text-center">"Mining in August was on testnet; mainnet launched with an initial money supply of precisely zero units on <span class="font-weight-bold">September 2</span>."
<p *ngIf="showContent" style="display:none;" class="note_tag text-center">"Mining in August was on testnet; mainnet launched with an initial money supply of precisely zero units on <span class="font-weight-bold">September 2</span>."
<span (click)="removeText()" class="float-right font-weight-bold">X</span>
</p>

View File

@ -615,6 +615,13 @@ export class GraphListComponent implements OnInit {
}
difficultyChartFunc(DifficultychartDate, data, Type, range1, range2, range3, tickformat) {
let dtickval;
if(tickformat == "%H-%M")
dtickval = ''
else if(DifficultychartDate.length <11712)
dtickval =2*24*60*60*1000
else
dtickval =6*24*60*60*1000
let window_width = window.screen.width;
let position = 0.00;
@ -658,6 +665,8 @@ export class GraphListComponent implements OnInit {
// fixedrange: true,
rangemode: 'nonnegative',
domain: [domain_start, 0.9],
tick0:DifficultychartDate[0],
dtick:dtickval,
// showgrid: true
tickfont: {
size: 12
@ -1472,6 +1481,17 @@ export class GraphListComponent implements OnInit {
};
}
totaldifficultyChartFunc(DifficultychartDate, data, type, range1, range2, range3, tickformat) {
let dtickval;
if(tickformat == "%H-%M")
dtickval = ''
else if(DifficultychartDate.length <11712)
dtickval =2*24*60*60*1000
else
dtickval =6*24*60*60*1000
let window_width = window.screen.width;
let position = 0.00;
let angle = 0;
@ -1509,6 +1529,8 @@ export class GraphListComponent implements OnInit {
xaxis: {
tickangle: -40,
tickformat: tickformat,
tick0:DifficultychartDate[0],
dtick:dtickval,
// fixedrange: true,
domain: [domain_start, 0.9]
// showgrid: true