Add message if on mining charts if there is no data to display

This commit is contained in:
nymkappa
2022-03-09 12:15:10 +01:00
parent 8d7546d2b5
commit 47da8c023b
2 changed files with 28 additions and 0 deletions

View File

@@ -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' },