Commit 6f6a0936 authored by Zixian Cai's avatar Zixian Cai

Fix display when some of the task failed

parent 144e478e
......@@ -58,9 +58,11 @@
var temp_yerr = [];
{% for task in ts["datapoints_grouped"] %}
temp_x.push("{{ task }}");
temp_y.push({{ ts["datapoints_grouped"][task][metric].mean }});
temp_yerr.push({{ ts["datapoints_grouped"][task][metric].std }});
{% if ts["datapoints_grouped"][task] %}
temp_x.push("{{ task }}");
temp_y.push({{ ts["datapoints_grouped"][task][metric].mean }});
temp_yerr.push({{ ts["datapoints_grouped"][task][metric].std }});
{% endif %}
{% endfor %}
var trace_{{ metric }} = {
x: temp_x,
......@@ -86,13 +88,15 @@
var temp_x = [];
var temp_y = [];
{% for task in ts["datapoints_grouped"] %}
var rawArr = {{ ts["datapoints_grouped"][task][metric].raw }};
rawArr.forEach(
function (val) {
temp_x.push("{{ task }}");
temp_y.push(val);
}
);
{% if ts["datapoints_grouped"][task] %}
var rawArr = {{ ts["datapoints_grouped"][task][metric].raw }};
rawArr.forEach(
function (val) {
temp_x.push("{{ task }}");
temp_y.push(val);
}
);
{% endif %}
{% endfor %}
var trace_{{ metric }} = {
x: temp_x,
......
......@@ -31,9 +31,11 @@
var temp_yerr = [];
{% for task in ts["datapoints_grouped"] %}
temp_x.push("{{ task }}");
temp_y.push({{ ts["datapoints_grouped"][task][metric].mean }});
temp_yerr.push({{ ts["datapoints_grouped"][task][metric].std }});
{% if ts["datapoints_grouped"][task] %}
temp_x.push("{{ task }}");
temp_y.push({{ ts["datapoints_grouped"][task][metric].mean }});
temp_yerr.push({{ ts["datapoints_grouped"][task][metric].std }});
{% endif %}
{% endfor %}
var trace_{{ metric }} = {
x: temp_x,
......
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