move axisScale to y-axis-definition component

This commit is contained in:
2020-02-08 12:53:50 +01:00
parent 4dc41faeae
commit 6109227508
4 changed files with 12 additions and 11 deletions

View File

@@ -30,8 +30,6 @@ export class VisualizationPageComponent implements OnInit {
@ViewChild(LimitByComponent, {static: false})
private limitbycomponent : LimitByComponent;
yAxisScale: string;
@ViewChild(YAxisDefinitionComponent, {static: false})
private yAxisDefinitionComponent : YAxisDefinitionComponent;
@@ -75,7 +73,6 @@ export class VisualizationPageComponent implements OnInit {
that.groupBy = that.tagFields.filter(val => filterDefaults.groupBy.includes(val.name));
that.splitBy = that.tagFields.find(val => filterDefaults.splitBy == val.name);
});
this.yAxisScale = "LOG10";
}
changePlotType(selectedPlotTypes: Array<PlotType>) {
@@ -150,10 +147,10 @@ export class VisualizationPageComponent implements OnInit {
request.limitBy = this.limitbycomponent.limitBy;
request.limit = this.limitbycomponent.limit;
request.dateRange = this.dateRangeAsString();
request.axisScale = this.yAxisScale;
request.aggregates = aggregates;
request.keyOutside = false;
request.generateThumbnail = this.enableGallery;
request.axisScale = this.yAxisDefinitionComponent.yAxisScale;
request.yRangeMin = this.yAxisDefinitionComponent.minYValue;
request.yRangeMax = this.yAxisDefinitionComponent.maxYValue;
request.yRangeUnit = this.yAxisDefinitionComponent.yAxisUnit;