Commit f2cadc7d authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

Summary: fix if a class is not present

parent ccbf1a7d
......@@ -34,7 +34,7 @@ dgenies.result.summary.show = function(percents) {
}
console.log(percent);
x += percent_value;
percent_value = percents[percent];
percent_value = percent in percents ? percents[percent] : 0;
container.append("rect")
.attr("x", x + "%")
.attr("y", 0)
......
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