Add difficulty adjustment table in mining dashboard

This commit is contained in:
nymkappa
2022-02-28 17:52:55 +09:00
parent f8117f9888
commit dd37a99b39
3 changed files with 22 additions and 12 deletions

View File

@@ -22,7 +22,8 @@ import { selectPowerOfTen } from 'src/app/bitcoin.utils';
`],
})
export class HashrateChartComponent implements OnInit {
@Input() widget: boolean = false;
@Input() tableOnly = false;
@Input() widget = false;
@Input() right: number | string = 45;
@Input() left: number | string = 75;
@@ -114,7 +115,7 @@ export class HashrateChartComponent implements OnInit {
}
return {
availableTimespanDay: availableTimespanDay,
difficulty: tableData
difficulty: this.tableOnly ? tableData.slice(0, 8) : tableData
};
}),
);