Update yaxis scale and view more link
This commit is contained in:
		
							parent
							
								
									39549c8ca9
								
							
						
					
					
						commit
						0c13d9f585
					
				@ -48,7 +48,7 @@
 | 
			
		||||
          <h5 class="card-title mt-3" i18n="lightning.network-history">Lightning network history</h5>
 | 
			
		||||
          <app-lightning-statistics-chart [widget]=true></app-lightning-statistics-chart>
 | 
			
		||||
          <app-nodes-networks-chart [widget]=true></app-nodes-networks-chart>
 | 
			
		||||
          <div class="mt-1"><a [routerLink]="['/graphs/lightning/capacity' | relativeUrl]" i18n="dashboard.view-more">View more »</a></div>
 | 
			
		||||
          <div class="mt-1"><a [routerLink]="['/graphs/lightning/nodes-networks' | relativeUrl]" i18n="dashboard.view-more">View more »</a></div>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
@ -93,7 +93,7 @@ export class NodesNetworksChartComponent implements OnInit {
 | 
			
		||||
                for (const day of data) {
 | 
			
		||||
                  maxYAxis = Math.max(maxYAxis, day.tor_nodes + day.clearnet_nodes + day.unannounced_nodes);
 | 
			
		||||
                }
 | 
			
		||||
                maxYAxis = Math.ceil(maxYAxis / 4000) * 4000;
 | 
			
		||||
                maxYAxis = Math.ceil(maxYAxis / 3000) * 3000;
 | 
			
		||||
                this.prepareChartOptions(chartData, maxYAxis);
 | 
			
		||||
                this.isLoading = false;
 | 
			
		||||
              }),
 | 
			
		||||
@ -128,7 +128,7 @@ export class NodesNetworksChartComponent implements OnInit {
 | 
			
		||||
        },
 | 
			
		||||
        text: $localize`Nodes per network`,
 | 
			
		||||
        left: 'center',
 | 
			
		||||
        top: 13,
 | 
			
		||||
        top: 11,
 | 
			
		||||
        zlevel: 10,
 | 
			
		||||
      };
 | 
			
		||||
    }
 | 
			
		||||
@ -251,7 +251,7 @@ export class NodesNetworksChartComponent implements OnInit {
 | 
			
		||||
          },
 | 
			
		||||
          max: maxYAxis,
 | 
			
		||||
          min: 0,
 | 
			
		||||
          interval: 4000,
 | 
			
		||||
          interval: 3000,
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
          type: 'value',
 | 
			
		||||
@ -275,7 +275,7 @@ export class NodesNetworksChartComponent implements OnInit {
 | 
			
		||||
          },
 | 
			
		||||
          max: maxYAxis,
 | 
			
		||||
          min: 0,
 | 
			
		||||
          interval: 4000,
 | 
			
		||||
          interval: 3000,
 | 
			
		||||
        }
 | 
			
		||||
      ],
 | 
			
		||||
      series: data.tor_nodes.length === 0 ? [] : [
 | 
			
		||||
 | 
			
		||||
@ -119,7 +119,7 @@ export class LightningStatisticsChartComponent implements OnInit {
 | 
			
		||||
        },
 | 
			
		||||
        text: $localize`Channels & Capacity`,
 | 
			
		||||
        left: 'center',
 | 
			
		||||
        top: 13,
 | 
			
		||||
        top: 11,
 | 
			
		||||
        zlevel: 10,
 | 
			
		||||
      };
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user