mirror of
https://github.com/mempool/mempool.git
synced 2024-12-27 08:44:26 +01:00
Add message if on mining charts if there is no data to display
This commit is contained in:
parent
8d7546d2b5
commit
47da8c023b
@ -125,7 +125,21 @@ export class HashrateChartComponent implements OnInit {
|
||||
}
|
||||
|
||||
prepareChartOptions(data) {
|
||||
let title = undefined;
|
||||
if (data.hashrates.length === 0) {
|
||||
title = {
|
||||
textStyle: {
|
||||
color: "grey",
|
||||
fontSize: 15
|
||||
},
|
||||
text: "Indexing in progress...",
|
||||
left: "center",
|
||||
top: "center"
|
||||
};
|
||||
}
|
||||
|
||||
this.chartOptions = {
|
||||
title: title,
|
||||
color: [
|
||||
new graphic.LinearGradient(0, 0, 0, 0.65, [
|
||||
{ offset: 0, color: '#F4511E' },
|
||||
|
@ -124,7 +124,21 @@ export class HashrateChartPoolsComponent implements OnInit {
|
||||
}
|
||||
|
||||
prepareChartOptions(data) {
|
||||
let title = undefined;
|
||||
if (data.series.length === 0) {
|
||||
title = {
|
||||
textStyle: {
|
||||
color: "grey",
|
||||
fontSize: 15
|
||||
},
|
||||
text: "Indexing in progress...",
|
||||
left: "center",
|
||||
top: this.widget ? 115 : this.isMobile() ? 'center' : 225,
|
||||
};
|
||||
}
|
||||
|
||||
this.chartOptions = {
|
||||
title: title,
|
||||
grid: {
|
||||
right: this.right,
|
||||
left: this.left,
|
||||
|
Loading…
Reference in New Issue
Block a user