mirror of
https://github.com/mempool/mempool.git
synced 2025-03-15 04:11:48 +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);
|
height: calc(100% - 280px);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:host ::ng-deep .ct-legend {
|
||||||
|
top: 25px;
|
||||||
|
}
|
||||||
|
|
|
@ -50,12 +50,24 @@ export class TelevisionComponent implements OnInit {
|
||||||
labelInterpolationFnc: (value: number): any => {
|
labelInterpolationFnc: (value: number): any => {
|
||||||
return this.bytesPipe.transform(value);
|
return this.bytesPipe.transform(value);
|
||||||
},
|
},
|
||||||
offset: 50
|
offset: 160
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
Chartist.plugins.ctTargetLine({
|
Chartist.plugins.ctTargetLine({
|
||||||
value: 1000000
|
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