Node graphs
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user