From 9265857772f17f765f949a0ea9acb7fa5f26ebe3 Mon Sep 17 00:00:00 2001 From: Tim Buckley Date: Tue, 18 Aug 2015 16:36:46 -0600 Subject: [PATCH] Add stroke to test rects; color rects in overview by pass/fail/skip to match main view --- stackviz/static/js/timeline.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stackviz/static/js/timeline.js b/stackviz/static/js/timeline.js index 06847ce..592e172 100644 --- a/stackviz/static/js/timeline.js +++ b/stackviz/static/js/timeline.js @@ -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();