Node graphs

This commit is contained in:
softsimon
2022-07-02 16:46:57 +02:00
parent 0a15b5d0de
commit 292b53b2c4
8 changed files with 436 additions and 14 deletions

View File

@@ -135,7 +135,7 @@ export class LightningStatisticsChartComponent implements OnInit {
for (const tick of ticks) {
if (tick.seriesIndex === 0) { // Nodes
sizeString = `${tick.marker} ${tick.seriesName}: ${formatNumber(tick.data[1], this.locale, '1.2-2')}`;
sizeString = `${tick.marker} ${tick.seriesName}: ${formatNumber(tick.data[1], this.locale, '1.0-0')}`;
} else if (tick.seriesIndex === 1) { // Capacity
weightString = `${tick.marker} ${tick.seriesName}: ${formatNumber(tick.data[1] / 100000000, this.locale, '1.0-0')} BTC`;
}
@@ -221,7 +221,7 @@ export class LightningStatisticsChartComponent implements OnInit {
],
series: data.nodes.length === 0 ? [] : [
{
zlevel: 0,
zlevel: 1,
name: 'Nodes',
showSymbol: false,
symbol: 'none',
@@ -251,16 +251,15 @@ export class LightningStatisticsChartComponent implements OnInit {
}
},
{
zlevel: 1,
zlevel: 0,
yAxisIndex: 1,
name: 'Capacity',
showSymbol: false,
symbol: 'none',
stack: 'Total',
data: data.capacity,
areaStyle: {},
type: 'line',
lineStyle: {
width: 2,
}
}
],
};