Jetzt im Akkordion drin
This commit is contained in:
parent
5cffc1d09f
commit
8c4d2fc36c
@ -1,8 +1,17 @@
|
|||||||
<main class="main">
|
<main class="main">
|
||||||
<div style="border: 1px solid blueviolet;width: 100%; height: 100%;">
|
|
||||||
<canvas id="canvas"></canvas>
|
|
||||||
</div>
|
|
||||||
<div ngbAccordion>
|
<div ngbAccordion>
|
||||||
|
<div ngbAccordionItem>
|
||||||
|
<h2 ngbAccordionHeader>
|
||||||
|
<button ngbAccordionButton>Diagramm der letzten 24h</button>
|
||||||
|
</h2>
|
||||||
|
<div ngbAccordionCollapse>
|
||||||
|
<div ngbAccordionBody>
|
||||||
|
<div style="border: 1px solid blueviolet;width: 100%; height: 100%;">
|
||||||
|
<canvas id="canvas"></canvas>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div ngbAccordionItem>
|
<div ngbAccordionItem>
|
||||||
<h2 ngbAccordionHeader>
|
<h2 ngbAccordionHeader>
|
||||||
<button ngbAccordionButton>Letzte 24 Stunden</button>
|
<button ngbAccordionButton>Letzte 24 Stunden</button>
|
||||||
|
|||||||
@ -46,6 +46,7 @@ export class AppComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
y: {
|
y: {
|
||||||
|
type: 'linear'
|
||||||
//stacked: true,
|
//stacked: true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -17,7 +17,7 @@ export class RestService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getLatestData(): Observable<Aggregate[]> {
|
getLatestData(): Observable<Aggregate[]> {
|
||||||
return this.http.get<Aggregate[]>('https://vz.home.peper.info/rest-vz/latest-data?houseId=1&timeWindow=1440');
|
return this.http.get<Aggregate[]>('https://vz.home.peper.info/rest-vz/latest-data?houseId=2&timeWindow=1440');
|
||||||
}
|
}
|
||||||
|
|
||||||
getStatisticsWithDuration(duration: string | undefined): Observable<Statistics> {
|
getStatisticsWithDuration(duration: string | undefined): Observable<Statistics> {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user