summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2016-10-05 15:51:20 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-10-05 15:51:20 +0000
commiteea5e516e6207c2937612ec2f861ba289dd687f1 (patch)
tree2bfd73dd96d31c0fe4035c62e23441b2e5394d07
parentea3b1fecd6e2b8e53c3f93ffb91d55bafde9a0a6 (diff)
parent54a2a98912a79aaaedd9a3a15b569c80455ed389 (diff)
Merge "Add dots in trend line"
-rw-r--r--utils/test/reporting/css/default.css6
-rw-r--r--utils/test/reporting/js/trend.js7
2 files changed, 13 insertions, 0 deletions
diff --git a/utils/test/reporting/css/default.css b/utils/test/reporting/css/default.css
index 7da5e277a..a9fa69db7 100644
--- a/utils/test/reporting/css/default.css
+++ b/utils/test/reporting/css/default.css
@@ -102,3 +102,9 @@ h2 {
stroke: #000;
shape-rendering: crispEdges;
}
+
+.dot {
+ fill: steelblue;
+ stroke: steelblue;
+ stroke-width: 1.5px;
+}
diff --git a/utils/test/reporting/js/trend.js b/utils/test/reporting/js/trend.js
index ec48e75ef..f24213382 100644
--- a/utils/test/reporting/js/trend.js
+++ b/utils/test/reporting/js/trend.js
@@ -63,6 +63,13 @@ var trend = function(container, trend_data) {
.attr("d", valueline(trend_data))
.attr("stroke", "steelblue")
.attr("fill", "none");
+
+ trend_svg.selectAll(".dot")
+ .data(trend_data)
+ .enter().append("circle")
+ .attr("r", 2.5)
+ .attr("cx", function(d) { return trend_x(d.date); })
+ .attr("cy", function(d) { return trend_y(d.score); });
return trend;
}