Add data zoom on pool hashrate chart

This commit is contained in:
nymkappa 2022-03-29 18:20:00 +09:00
parent cbb157a94c
commit b465b7abba
No known key found for this signature in database
GPG Key ID: E155910B16E8BD04
2 changed files with 35 additions and 0 deletions

View File

@ -31,6 +31,13 @@
}
}
.chart {
margin-bottom: 20px;
@media (max-width: 768px) {
margin-bottom: 10px;
}
}
div.scrollable {
width: 100%;
height: 100%;

View File

@ -172,6 +172,34 @@ export class PoolComponent implements OnInit {
},
},
],
dataZoom: [{
type: 'inside',
realtime: true,
zoomLock: true,
maxSpan: 100,
minSpan: 10,
moveOnMouseMove: false,
}, {
fillerColor: '#aaaaff15',
borderColor: '#ffffff88',
showDetail: false,
show: true,
type: 'slider',
brushSelect: false,
realtime: true,
bottom: 0,
left: 20,
right: 15,
selectedDataBackground: {
lineStyle: {
color: '#fff',
opacity: 0.45,
},
areaStyle: {
opacity: 0,
},
},
}],
};
}