2019-07-02 16:18:09 +03:00
|
|
|
<nb-card class="cards-container">
|
|
|
|
|
<nb-card size="large" class="table-card">
|
|
|
|
|
<nb-card-header>
|
|
|
|
|
Electricity Consumption
|
|
|
|
|
</nb-card-header>
|
2017-07-11 18:59:08 +03:00
|
|
|
|
2017-08-01 17:42:21 +03:00
|
|
|
<nb-tabset fullWidth>
|
2019-01-08 16:17:20 +03:00
|
|
|
<nb-tab *ngFor="let year of listData" [tabTitle]="year.title" [active]="year.active">
|
2019-07-02 16:18:09 +03:00
|
|
|
<nb-list>
|
|
|
|
|
<nb-list-item *ngFor="let month of year.months">
|
2017-07-13 11:49:38 +03:00
|
|
|
<span class="month">{{ month.month }}</span>
|
2019-07-02 16:18:09 +03:00
|
|
|
<span>
|
|
|
|
|
<nb-icon
|
|
|
|
|
[class.down]="month.down"
|
|
|
|
|
[class.up]="!month.down"
|
|
|
|
|
[icon]="month.down ? 'arrow-down' : 'arrow-up'" pack="eva">
|
|
|
|
|
</nb-icon>
|
|
|
|
|
{{ month.delta }}
|
|
|
|
|
</span>
|
|
|
|
|
<span class="results">
|
|
|
|
|
{{ month.kWatts }} <span class="caption">kWh</span> / {{ month.cost }} <span class="caption">USD</span>
|
|
|
|
|
</span>
|
|
|
|
|
</nb-list-item>
|
|
|
|
|
</nb-list>
|
2017-08-01 17:42:21 +03:00
|
|
|
</nb-tab>
|
|
|
|
|
</nb-tabset>
|
2019-07-02 16:18:09 +03:00
|
|
|
</nb-card>
|
2017-07-11 18:59:08 +03:00
|
|
|
|
2019-07-02 16:18:09 +03:00
|
|
|
<nb-card size="large" class="chart-card">
|
|
|
|
|
<nb-card-header>
|
|
|
|
|
<span class="stats">
|
|
|
|
|
<span class="caption">Consumed</span>
|
|
|
|
|
<span>816 <span class="caption">kWh</span></span>
|
|
|
|
|
</span>
|
|
|
|
|
<span class="stats">
|
|
|
|
|
<span class="caption">Spent</span>
|
|
|
|
|
<span>291 <span class="caption">USD</span></span>
|
|
|
|
|
</span>
|
2017-07-14 18:55:38 +03:00
|
|
|
|
2021-08-06 17:23:50 +03:00
|
|
|
<nb-select matRipple [(selected)]="type" class="type-select">
|
|
|
|
|
<nb-option matRipple *ngFor="let t of types" [value]="t">{{ t }}</nb-option>
|
2019-07-02 16:18:09 +03:00
|
|
|
</nb-select>
|
|
|
|
|
</nb-card-header>
|
2017-07-14 18:55:38 +03:00
|
|
|
|
2019-01-08 16:17:20 +03:00
|
|
|
<ngx-electricity-chart [data]="chartData"></ngx-electricity-chart>
|
2019-07-02 16:18:09 +03:00
|
|
|
</nb-card>
|
2017-08-01 17:42:21 +03:00
|
|
|
</nb-card>
|