AxisTypes has a better toString method

This commit is contained in:
2020-02-08 12:41:02 +01:00
parent c7d58d568c
commit b59b49f2d1
2 changed files with 49 additions and 11 deletions

View File

@@ -99,13 +99,17 @@ export class VisualizationPageComponent implements OnInit {
getAxes() : AxesTypes {
var x = new Set<DataType>();
var y = new Set<DataType>();
var x = new Array<DataType>();
var y = new Array<DataType>();
for(var i = 0; i < this.selectedPlotType.length; i++){
var plotType = this.selectedPlotType[i];
x.add(plotType.xAxis);
y.add(plotType.yAxis);
if (!x.includes(plotType.xAxis)) {
x.push(plotType.xAxis);
}
if (!y.includes(plotType.yAxis)) {
y.push(plotType.yAxis);
}
}
return new AxesTypes(x,y);
@@ -233,6 +237,11 @@ export class DateRange {
startDate: any;
endDate: any;
duration: any;
}
export class AxesUsed {
x1: DataType;
y1: DataType;
x2: DataType;
y2: DataType;
}