Skip to content
Snippets Groups Projects
Commit 0f86c484 authored by francois.grand's avatar francois.grand
Browse files

remous : correction d'un bug d'affichage des courbes fluviale, torrentielle et...

remous : correction d'un bug d'affichage des courbes fluviale, torrentielle et paramètre supplémentaire
parent 74bb2083
No related branches found
No related tags found
No related merge requests found
......@@ -196,15 +196,15 @@ export class RemousResultsComponent {
let yTor: string = r["tor"];
let yExtra: string = r["extraFlu"];
if (yExtra == undefined)
if (yExtra == "")
yExtra = r["extraTor"];
if (yFlu != undefined && yFlu != "")
dataFlu.push(this.mapY(x, +yFlu));
if (yTor != undefined && yTor != "")
dataTor.push(this.mapY(x, +yTor));
if (yExtra != undefined && yExtra != "")
dataExtra.push(this.mapY(x, +yExtra));
if (yFlu != "")
dataFlu.push({ "x": x, "y": this.mapY(x, +yFlu) });
if (yTor != "")
dataTor.push({ "x": x, "y": this.mapY(x, +yTor) });
if (yExtra != "")
dataExtra.push({ "x": x, "y": this._extraGraph ? +yExtra : this.mapY(x, +yExtra) });
}
if (this._extraGraph)
ds2.push({ label: this._extraParamLabel, data: dataExtra, tension: 0, borderColor: "#0093BD", pointRadius: 5 });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment