Fix diagrams not shown for january null
This commit is contained in:
parent
7a6be53e0b
commit
509ccea760
@ -31,7 +31,7 @@
|
||||
</app-graph>
|
||||
</ng-template>
|
||||
</mat-tab>
|
||||
<mat-tab *ngIf="region.temperature_mean_max && region.temperature_mean_max[0]" label="Temperatures">
|
||||
<mat-tab *ngIf="region.temperature_mean_max" label="Temperatures">
|
||||
<ng-template matTabContent>
|
||||
<app-graph [colors]="['blue', 'red']" [labels]="['Min', 'Max']"
|
||||
[monthlyDatas]="[region.temperature_mean_min, region.temperature_mean_max]" class="graph"
|
||||
@ -39,13 +39,13 @@
|
||||
</app-graph>
|
||||
</ng-template>
|
||||
</mat-tab>
|
||||
<mat-tab *ngIf="region.precipitation && region.precipitation[0]" label="Precipitation">
|
||||
<mat-tab *ngIf="region.precipitation" label="Precipitation">
|
||||
<ng-template matTabContent>
|
||||
<app-graph [monthlyDatas]="[region.precipitation]" class="graph" formatSting="####mm">
|
||||
</app-graph>
|
||||
</ng-template>
|
||||
</mat-tab>
|
||||
<mat-tab *ngIf="region.rain_days && region.rain_days[0]" label="Rain days">
|
||||
<mat-tab *ngIf="region.rain_days" label="Rain days">
|
||||
<ng-template matTabContent>
|
||||
<app-graph [monthlyDatas]="[region.rain_days]" class="graph" formatSting="####" graphType="column">
|
||||
</app-graph>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user