Merge branch 'master' into natsoni/address-history-chart-usd

This commit is contained in:
softsimon 2024-06-22 15:54:31 +09:00 committed by GitHub
commit 19ea077fe5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 63 additions and 24 deletions

View File

@ -132,25 +132,63 @@
<div class="box"> <div class="box">
<div class="row"> <div class="row">
<div class="col"> @if (isMobile) {
<table class="table table-borderless table-striped"> <div class="col-sm">
<tbody> <table class="table table-borderless table-striped">
<tr> <tbody>
<td colspan="2"><span class="skeleton-loader"></span></td> <tr>
</tr> <td colspan="2"><span class="skeleton-loader"></span></td>
<tr> </tr>
<td colspan="2"><span class="skeleton-loader"></span></td> <tr>
</tr> <td colspan="2"><span class="skeleton-loader"></span></td>
<tr> </tr>
<td colspan="2"><span class="skeleton-loader"></span></td> <tr>
</tr> <td colspan="2"><span class="skeleton-loader"></span></td>
</tbody> </tr>
</table> <tr>
</div> <td colspan="2"><span class="skeleton-loader"></span></td>
<div class="w-100 d-block d-md-none"></div> </tr>
<div class="col"> <tr>
<td colspan="2"><span class="skeleton-loader"></span></td>
</div> </tr>
<tr>
<td colspan="2"><span class="skeleton-loader"></span></td>
</tr>
</tbody>
</table>
</div>
} @else {
<div class="col-sm">
<table class="table table-borderless table-striped table-fixed">
<tbody>
<tr>
<td colspan="2"><span class="skeleton-loader"></span></td>
</tr>
<tr>
<td colspan="2"><span class="skeleton-loader"></span></td>
</tr>
<tr>
<td colspan="2"><span class="skeleton-loader"></span></td>
</tr>
</tbody>
</table>
</div>
<div class="col-sm">
<table class="table table-borderless table-striped table-fixed">
<tbody>
<tr>
<td colspan="2"><span class="skeleton-loader"></span></td>
</tr>
<tr>
<td colspan="2"><span class="skeleton-loader"></span></td>
</tr>
<tr>
<td colspan="2"><span class="skeleton-loader"></span></td>
</tr>
</tbody>
</table>
</div>
}
</div> </div>
</div> </div>

View File

@ -249,12 +249,13 @@ export class IncomingTransactionsGraphComponent implements OnInit, OnChanges, On
} }
], ],
yAxis: { yAxis: {
max: (value) => { max: (value): number => {
if (!this.outlierCappingEnabled || value.max < this.medianVbytesPerSecond * OUTLIERS_MEDIAN_MULTIPLIER) { let cappedMax = value.max;
return undefined; if (this.outlierCappingEnabled && value.max >= (this.medianVbytesPerSecond * OUTLIERS_MEDIAN_MULTIPLIER)) {
} else { cappedMax = Math.round(this.medianVbytesPerSecond * OUTLIERS_MEDIAN_MULTIPLIER);
return Math.round(this.medianVbytesPerSecond * OUTLIERS_MEDIAN_MULTIPLIER);
} }
// always show the clearing rate line, plus a small margin
return Math.max(1800, cappedMax);
}, },
type: 'value', type: 'value',
axisLabel: { axisLabel: {