Jetzt im Akkordion drin
This commit is contained in:
parent
5cffc1d09f
commit
8c4d2fc36c
@ -1,8 +1,17 @@
|
||||
<main class="main">
|
||||
<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 ngbAccordion>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div ngbAccordionItem>
|
||||
<h2 ngbAccordionHeader>
|
||||
<button ngbAccordionButton>Letzte 24 Stunden</button>
|
||||
|
||||
@ -46,6 +46,7 @@ export class AppComponent implements OnInit {
|
||||
}
|
||||
},
|
||||
y: {
|
||||
type: 'linear'
|
||||
//stacked: true,
|
||||
}
|
||||
}
|
||||
|
||||
@ -17,7 +17,7 @@ export class RestService {
|
||||
}
|
||||
|
||||
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> {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user