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

Fix display when some of the task failed

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