Release 1.9.2-RC2 #55
			
				
			
		
		
		
	| 
						 | 
					@ -37,6 +37,7 @@
 | 
				
			||||||
      [legendTitle]="legendTitle"
 | 
					      [legendTitle]="legendTitle"
 | 
				
			||||||
      [showXAxisLabel]="showXAxisLabel"
 | 
					      [showXAxisLabel]="showXAxisLabel"
 | 
				
			||||||
      [showYAxisLabel]="showYAxisLabel"
 | 
					      [showYAxisLabel]="showYAxisLabel"
 | 
				
			||||||
 | 
					      [yAxisLabel]="chartYAxisLabel"
 | 
				
			||||||
      [animations]="barAnimations"
 | 
					      [animations]="barAnimations"
 | 
				
			||||||
      [barPadding]="barPadding"
 | 
					      [barPadding]="barPadding"
 | 
				
			||||||
      [xAxisTickFormatting]="axisFormatX"
 | 
					      [xAxisTickFormatting]="axisFormatX"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -134,9 +134,9 @@ export class FractionStatsComponent implements OnInit, OnChanges {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  selectChart(newSelection) {
 | 
					  selectChart(newSelection) {
 | 
				
			||||||
    this.activeChartSelect = newSelection;
 | 
					    this.activeChartSelect = newSelection;
 | 
				
			||||||
 | 
					    this.setChartYAxisLabel(this.activeChartSelect);
 | 
				
			||||||
    if (this.activeChartSelect !== this.labels.flag) {
 | 
					    if (this.activeChartSelect !== this.labels.flag) {
 | 
				
			||||||
      this.showLineChart = true;
 | 
					      this.showLineChart = true;
 | 
				
			||||||
      this.setChartYAxisLabel(this.activeChartSelect);
 | 
					 | 
				
			||||||
      switch (this.activeChartSelect) {
 | 
					      switch (this.activeChartSelect) {
 | 
				
			||||||
        case this.labels.points:
 | 
					        case this.labels.points:
 | 
				
			||||||
          this.lineChartData = this.tmpPointData;
 | 
					          this.lineChartData = this.tmpPointData;
 | 
				
			||||||
| 
						 | 
					@ -506,6 +506,12 @@ export class FractionStatsComponent implements OnInit, OnChanges {
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  axisFormatY(val) {
 | 
					  axisFormatY(val) {
 | 
				
			||||||
 | 
					    if (val === 1) {
 | 
				
			||||||
 | 
					      return Fraction.BLUFOR;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    if (val === -1) {
 | 
				
			||||||
 | 
					      return Fraction.OPFOR;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
    return '';
 | 
					    return '';
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue