Add chart select label names
parent
b99825b01a
commit
2d64c32598
|
@ -36,11 +36,11 @@ export class ServerStatsComponent implements OnInit, OnChanges {
|
||||||
tmpFlagCaptureData;
|
tmpFlagCaptureData;
|
||||||
|
|
||||||
readonly labels = {
|
readonly labels = {
|
||||||
points: 'stats.fraction.select.points',
|
singleAvg: 'stats.performance.select.single.avg',
|
||||||
budget: 'stats.fraction.select.budget',
|
singleMin: 'stats.performance.select.single.min',
|
||||||
kill: 'stats.fraction.select.kills',
|
avgTimeline: 'stats.performance.select.timeline.avg',
|
||||||
friendlyFire: 'stats.fraction.select.friendly.fire',
|
minTimeline: 'stats.performance.select.timeline.min',
|
||||||
vehicle: 'stats.fraction.select.vehicle.kills',
|
serverFps: 'stats.performance.select.timeline.server',
|
||||||
};
|
};
|
||||||
readonly labelsAsString = Object.keys(this.labels)
|
readonly labelsAsString = Object.keys(this.labels)
|
||||||
.map((key) => this.labels[key]);
|
.map((key) => this.labels[key]);
|
||||||
|
@ -62,7 +62,7 @@ export class ServerStatsComponent implements OnInit, OnChanges {
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.setLineChartLabel(this.labels.points);
|
this.setLineChartLabel(this.labels.singleAvg);
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnChanges(changes: SimpleChanges) {
|
ngOnChanges(changes: SimpleChanges) {
|
||||||
|
@ -75,7 +75,7 @@ export class ServerStatsComponent implements OnInit, OnChanges {
|
||||||
flag: false
|
flag: false
|
||||||
};
|
};
|
||||||
Object.assign(this, [this.lineChartData]);
|
Object.assign(this, [this.lineChartData]);
|
||||||
this.activeChartSelect = this.labels.points;
|
this.activeChartSelect = this.labels.singleAvg;
|
||||||
|
|
||||||
this.startDateObj = new Date(this.war.date);
|
this.startDateObj = new Date(this.war.date);
|
||||||
this.startDateObj.setHours(0);
|
this.startDateObj.setHours(0);
|
||||||
|
|
|
@ -28,6 +28,12 @@
|
||||||
"stats.fraction.select.stabilize": "Stabilisiert",
|
"stats.fraction.select.stabilize": "Stabilisiert",
|
||||||
"stats.fraction.select.flag": "Flaggenbesitz",
|
"stats.fraction.select.flag": "Flaggenbesitz",
|
||||||
|
|
||||||
|
"stats.performance.select.single.avg": "Spieler FPS Durchschnitt",
|
||||||
|
"stats.performance.select.single.min": "Spieler FPS Minimum",
|
||||||
|
"stats.performance.select.timeline.avg": "Verlauf Gesamt FPS",
|
||||||
|
"stats.performance.select.timeline.min": "Verlauf Minimum FPS",
|
||||||
|
"stats.performance.select.timeline.server": "Server FPS",
|
||||||
|
|
||||||
"stats.player.detail.headline": "Kampagnendetails - {{name}}",
|
"stats.player.detail.headline": "Kampagnendetails - {{name}}",
|
||||||
"stats.player.detail.button.back": "Zurück",
|
"stats.player.detail.button.back": "Zurück",
|
||||||
"stats.player.detail.kill.death.ratio": "Kill/Death",
|
"stats.player.detail.kill.death.ratio": "Kill/Death",
|
||||||
|
|
|
@ -36,6 +36,12 @@
|
||||||
"stats.fraction.select.stabilize": "Stabilized",
|
"stats.fraction.select.stabilize": "Stabilized",
|
||||||
"stats.fraction.select.flag": "Flag Possession",
|
"stats.fraction.select.flag": "Flag Possession",
|
||||||
|
|
||||||
|
"stats.performance.select.single.avg": "Player FPS Average",
|
||||||
|
"stats.performance.select.single.min": "Player FPS Minimum",
|
||||||
|
"stats.performance.select.timeline.avg": "Timeline Overall FPS",
|
||||||
|
"stats.performance.select.timeline.min": "Timeline Minimum FPS",
|
||||||
|
"stats.performance.select.timeline.server": "Server FPS",
|
||||||
|
|
||||||
"stats.player.detail.headline": "Campaign Details - {{name}}",
|
"stats.player.detail.headline": "Campaign Details - {{name}}",
|
||||||
"stats.player.detail.button.back": "Back",
|
"stats.player.detail.button.back": "Back",
|
||||||
"stats.player.detail.kill.death.ratio": "Kill/Death",
|
"stats.player.detail.kill.death.ratio": "Kill/Death",
|
||||||
|
|
Loading…
Reference in New Issue