add component for y-axis range

This commit is contained in:
2019-10-10 16:54:02 +02:00
parent 9cf9bf4673
commit ca8ee7d8f7
10 changed files with 146 additions and 38 deletions

View File

@@ -15,18 +15,29 @@ export class VisualizationPageComponent implements OnInit {
combinePlotTypes: Array<any>;
tagFields: Array<any>;
yAxis: string;
yAxisUnit: string;
minYValue: number;
maxYValue: number;
query: string;
constructor(private plotService: PlotService) {
}
ngOnInit() {
this.query = "pod=*";
this.plotTypes = this.plotService.getPlotTypes();
this.selectedPlotType = this.plotTypes[0].name;
this.combinePlotTypes = this.plotTypes;
this.tagFields = this.plotService.getTagFields();
this.yAxis = "log";
this.yAxisUnit = "MINUTES";
this.minYValue = 0;
this.maxYValue = 120;
}
}