Minor fixes on Liquid dashboards

This commit is contained in:
natsoni
2024-02-09 14:26:34 +01:00
parent 925d51f40e
commit 42bd08c744
15 changed files with 197 additions and 163 deletions

View File

@@ -10,10 +10,10 @@ import { EChartsOption } from '../../../graphs/echarts';
})
export class ReservesRatioGraphComponent implements OnInit, OnChanges {
@Input() data: any;
@Input() height: number | string = '320';
ratioHistoryChartOptions: EChartsOption;
ratioSeries: number[] = [];
height: number | string = '200';
right: number | string = '10';
top: number | string = '20';
left: number | string = '50';

View File

@@ -108,14 +108,14 @@ export class ReservesRatioComponent implements OnInit, OnChanges {
fontFamily: 'inherit',
fontWeight: 500,
formatter: function (value) {
return (value).toFixed(5);
return (value * 100).toFixed(3) + ' %';
},
color: 'inherit'
},
data: [
{
value: parseFloat(currentReserves.amount) / parseFloat(currentPeg.amount),
name: 'Peg-O-Meter'
name: 'Assets vs Liabilities'
}
]
}