Add stroke to test rects; color rects in overview by pass/fail/skip to match main view

This commit is contained in:
Tim Buckley 2015-08-18 16:36:46 -06:00
parent d2057b4003
commit 9265857772
1 changed files with 4 additions and 1 deletions

View File

@ -403,6 +403,7 @@ var initTimeline = function(options, data, timeExtents) {
rects.enter().append("rect")
.attr("y", function(d) { return y1(parseWorker(d.tags)); })
.attr("height", 0.8 * y1(1))
.attr("stroke", 'rgba(100, 100, 100, 0.25)')
.attr("clip-path", "url(#clip)");
rects
@ -463,7 +464,9 @@ var initTimeline = function(options, data, timeExtents) {
.attr("height", 10);
rects.attr("x", function(d) { return x(d.start_date); })
.attr("width", function(d) { return x(d.end_date) - x(d.start_date); });
.attr("width", function(d) { return x(d.end_date) - x(d.start_date); })
.attr("stroke", 'rgba(100, 100, 100, 0.25)')
.attr("fill", function(d) { return statusColorMap[d.status]; });
rects.exit().remove();
groups.exit().remove();