<div fxLayout="column" fxLayoutAlign="start stretch" fxFlex="100" class="padding-gap-x-large">
  <rtl-horizontal-scroller (stepChanged)="onSelectionChange($event)"></rtl-horizontal-scroller>
  <div fxLayout="column" fxLayoutAlign="start stretch" fxFlex="100" class="padding-gap-x">
    <div *ngIf="feeReportData.length > 0 && filteredEventsBySelectedPeriod.length > 0" fxLayout="column" fxLayoutAlign="center center" fxFlex="100" class="font-size-120 font-bold-700 mt-1"
    [@fadeIn]="totalFeeSat">{{(totalFeeSat || 0) | number:'1.0-0'}} Sats/{{(filteredEventsBySelectedPeriod.length || 0) | number}} Events</div>
    <div *ngIf="feeReportData.length <= 0 || filteredEventsBySelectedPeriod.length <= 0" fxLayout="column" fxLayoutAlign="center center" fxFlex="100" class="font-size-120 mt-1">No fee report for the selected period</div>
    <div class="mt-1">
      <ngx-charts-bar-vertical
        *ngIf="feeReportData.length > 0 && filteredEventsBySelectedPeriod.length > 0"
        class="one-color"
        [view]="view"
        [results]="feeReportData"
        [gradient]="false"
        [xAxis]="true"
        [yAxis]="true"
        [showXAxisLabel]="true"
        [showYAxisLabel]="showYAxisLabel"
        [xAxisLabel]="xAxisLabel"
        [yAxisLabel]="yAxisLabel"
        [showGridLines]="false"
        [showDataLabel]="false"
        (select)="onChartBarSelected($event)"
        (mouseup)="onChartMouseUp($event)">
        <ng-template #tooltipTemplate let-model="model">
          <span>
            <span class="tooltip-label">Events: {{(model.extra.totalEvents || 0) | number}}</span>
            <span class="tooltip-label">Fee: {{(model.value || 0) | number:'1.0-0'}}</span>
          </span>
        </ng-template>
      </ngx-charts-bar-vertical>
    </div>
    <div class="mt-1">
      <rtl-ecl-forwarding-history *ngIf="filteredEventsBySelectedPeriod.length > 0" [eventsData]="filteredEventsBySelectedPeriod" [filterValue]="eventFilterValue"></rtl-ecl-forwarding-history>
    </div>
  </div>
</div>
