make default for 'splitBy' configurable

This commit is contained in:
2019-11-10 16:33:37 +01:00
parent 8d690ff0e7
commit d9b2327f35
7 changed files with 25 additions and 12 deletions

View File

@@ -46,9 +46,7 @@ export class VisualizationPageComponent implements OnInit {
plotView: PlotViewComponent;
enableGallery = false;
splitBy = new FormControl(null, [
Validators.required
]);
splitBy = null;
constructor(private plotService: PlotService) {
}
@@ -69,6 +67,7 @@ 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";