src/app/routes/environment/management/management.component.ts
@@ -14,6 +14,7 @@ export class EnvironmentManagementComponent implements OnInit, OnDestroy { data: any = {}; offlineChartData: any[] = []; constructor( private deviceService: DeviceService, @@ -32,6 +33,16 @@ }); } const offlineChartData = []; for (let i = 0; i < 20; i += 1) { offlineChartData.push({ x: new Date().getTime() + 1000 * 60 * 30 * i, y1: Math.floor(Math.random() * 100) + 10, y2: Math.floor(Math.random() * 100) + 10 }); } this.offlineChartData = offlineChartData; this.data = { searchData: searchData };