fix fee graph for underfilled blocks
This commit is contained in:
parent
9f2b98b246
commit
86f51e3902
@ -68,7 +68,7 @@ export class FeeDistributionGraphComponent implements OnInit, OnChanges {
|
|||||||
samples.push([(1 - (sampleIndex / this.numSamples)) * 100, 0]);
|
samples.push([(1 - (sampleIndex / this.numSamples)) * 100, 0]);
|
||||||
nextSample += sampleInterval;
|
nextSample += sampleInterval;
|
||||||
sampleIndex++;
|
sampleIndex++;
|
||||||
break;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (txs[txIndex] && nextSample < cumVSize + txs[txIndex].vsize) {
|
while (txs[txIndex] && nextSample < cumVSize + txs[txIndex].vsize) {
|
||||||
@ -128,7 +128,7 @@ export class FeeDistributionGraphComponent implements OnInit, OnChanges {
|
|||||||
position: 'top',
|
position: 'top',
|
||||||
color: '#ffffff',
|
color: '#ffffff',
|
||||||
textShadowBlur: 0,
|
textShadowBlur: 0,
|
||||||
formatter: (label: any): string => '' + Math.floor(label.data[1]),
|
formatter: (label: any): string => '' + (label.data[1] > 99.5 ? Math.round(label.data[1]) : label.data[1].toFixed(1)),
|
||||||
},
|
},
|
||||||
showAllSymbol: false,
|
showAllSymbol: false,
|
||||||
smooth: true,
|
smooth: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user