Commit 0aa88a2d authored by Jérome Perrin's avatar Jérome Perrin

Better display of confidence intervals in Exit stat

parent 42f6383a
...@@ -652,8 +652,12 @@ ...@@ -652,8 +652,12 @@
if (value.ub == value.lb) { if (value.ub == value.lb) {
value = value.ub; value = value.ub;
} else { } else {
// better than [Object] ... var ci_text = "<table width='100%'><tbody>"
value = JSON.stringify(value, " ", undefined) ci_text += "<tr><td>Average</td><td>" + value.avg.toFixed(2) + "</td></tr>"
ci_text += "<tr><td>Lower Bound</td><td>" + value.lb.toFixed(2) + "</td></tr>"
ci_text += "<tr><td>Upper Bound</td><td>" + value.ub.toFixed(2) + "</td></tr>"
ci_text += "</tbody></table>"
value = ci_text;
} }
} }
if (typeof value == "number") { if (typeof value == "number") {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment