mirror of
https://github.com/mempool/mempool.git
synced 2025-03-13 11:36:07 +01:00
Enabled legend on tv view.
This commit is contained in:
parent
f1db2ccbea
commit
4ccecc4747
2 changed files with 17 additions and 1 deletions
|
@ -43,3 +43,7 @@
|
|||
height: calc(100% - 280px);
|
||||
}
|
||||
}
|
||||
|
||||
:host ::ng-deep .ct-legend {
|
||||
top: 25px;
|
||||
}
|
||||
|
|
|
@ -50,12 +50,24 @@ export class TelevisionComponent implements OnInit {
|
|||
labelInterpolationFnc: (value: number): any => {
|
||||
return this.bytesPipe.transform(value);
|
||||
},
|
||||
offset: 50
|
||||
offset: 160
|
||||
},
|
||||
plugins: [
|
||||
Chartist.plugins.ctTargetLine({
|
||||
value: 1000000
|
||||
}),
|
||||
Chartist.plugins.legend({
|
||||
legendNames: [1, 2, 3, 4, 5, 6, 8, 10, 12, 15, 20, 30, 40, 50, 60, 70, 80, 90, 100, 125, 150, 175, 200,
|
||||
250, 300, 350, 400].map((sats, i, arr) => {
|
||||
if (sats === 400) {
|
||||
return '350+';
|
||||
}
|
||||
if (i === 0) {
|
||||
return '1 sat/vbyte';
|
||||
}
|
||||
return arr[i - 1] + ' - ' + sats;
|
||||
})
|
||||
})
|
||||
]
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue