-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d67888b
commit f4be0da
Showing
5 changed files
with
12 additions
and
11 deletions.
There are no files selected for viewing
14 changes: 7 additions & 7 deletions
14
src/app/components/chart-statistics-month/chart-statistics-month.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
<section class="container"> | ||
<span>{{ title}}</span> | ||
<div class="styleSelect" *ngIf="!loadingData"> | ||
<div class="buttonStyle1 mr-2"><span>Año:</span></div> | ||
<select name="purchasePerMonth" class="form-select form-select-sm ng-pristine ng-invalid ng-touched" | ||
(change)="onYearChange($event)"> | ||
<option *ngFor="let year of years" [value]="year">{{ year }}</option> | ||
</select> | ||
<div class="buttonStyle1 mr-2"><span>Año:</span></div> | ||
<select name="purchasePerMonth" class="form-select form-select-sm ng-pristine ng-invalid ng-touched" | ||
[(ngModel)]="selectedYear" (change)="onYearChange($event)"> | ||
<option *ngFor="let year of years" [value]="year">{{ year }}</option> | ||
</select> | ||
</div> | ||
<div *ngIf="loadingData"> | ||
<fa-icon class="spinner-primary d-flex align-items-center justify-content-center mt-2" | ||
[icon]="['fas', 'circle-notch']" [spin]="true" [size]="'3x'"></fa-icon> | ||
</div> | ||
<div *ngIf="!loadingData && chartDataArray.length === 0" class="alert alert-secondary mt-2 text-center w-fit"> | ||
No hay información disponible para este periodo. Seleccione otro periodo | ||
No hay información disponible para este período. Seleccione otro período. | ||
</div> | ||
<div class="canvasStyle" *ngIf="!loadingData && chartDataArray.length > 0"> | ||
<canvas baseChart [data]="barChartData" [options]="barChartOptions" [plugins]="barChartPlugins" | ||
[legend]="barChartLegend" [type]="'bar'"> | ||
</canvas> | ||
</div> | ||
</section> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters