diff options
| author | Georgios Andreadis <G.Andreadis@student.tudelft.nl> | 2017-02-26 18:34:13 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-26 18:34:13 +0100 |
| commit | df65449694e17a367e59b112c0cc12d66c387ca9 (patch) | |
| tree | 6a2589cb5cdc86bdcfe47f4b399f385c6a5ecbc7 /src/scripts/controllers/simulation | |
| parent | 30fb1767715f347246368b7f2462ccfae9413330 (diff) | |
| parent | 495deb1815b465230d0831d0132e85ba207ac528 (diff) | |
Merge pull request #6 from tudelft-atlarge/bugfixes
Fixes for bugs in experiment simulation
Diffstat (limited to 'src/scripts/controllers/simulation')
| -rw-r--r-- | src/scripts/controllers/simulation/chart.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scripts/controllers/simulation/chart.ts b/src/scripts/controllers/simulation/chart.ts index 5f94f412..1b67934b 100644 --- a/src/scripts/controllers/simulation/chart.ts +++ b/src/scripts/controllers/simulation/chart.ts @@ -92,7 +92,7 @@ export class ChartController { return c3.generate({ bindto: chartId, data: { - xFormat: '%S', + // xFormat: '%S', x: "time", columns: this.chartData, names: this.names @@ -141,7 +141,7 @@ export class ChartController { } public update(): void { - this.xSeries = (<(number|string)[]>["time"]).concat(Util.range(this.simulationController.currentTick)); + this.xSeries = (<(number|string)[]>["time"]).concat(<any[]> Util.timeRange(this.simulationController.currentTick)); this.chartData = [this.xSeries]; |
