Added new page

This commit is contained in:
2017-04-11 13:46:19 +02:00
parent a2d97c0778
commit cb2e28708f
15 changed files with 1155 additions and 1043 deletions
+36
View File
@@ -0,0 +1,36 @@
import { Component } from '@angular/core';
import { DataService } from './data.service';
import {LineChartComponent} from "./chart.component";
import {LineData} from "./line-data";
import {LabelData} from "./label-data";
@Component({
selector: 'picker',
templateUrl: './picker.component.html'
})
export class PickerComponent {
public label:LabelData;
public data:LineData;
public loaded:boolean = false;
constructor(private dataService: DataService) {}
refreshData(id:string)
{
this.dataService
.get(id)
.subscribe(res => {
this.label = res.labels;
this.data = res.HOV;
this.loaded = true;
});
}
}