Add dots in trend line 33/22633/1
authorMorgan Richomme <morgan.richomme@orange.com>
Mon, 3 Oct 2016 07:52:27 +0000 (09:52 +0200)
committerMorgan Richomme <morgan.richomme@orange.com>
Mon, 3 Oct 2016 07:52:27 +0000 (09:52 +0200)
JIRA: FUNCTEST-483

Change-Id: I014faccf9358fff5c47d4be6f4d8f55fd7133691
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
utils/test/reporting/css/default.css
utils/test/reporting/js/trend.js

index 7da5e27..a9fa69d 100644 (file)
@@ -102,3 +102,9 @@ h2 {
   stroke: #000;
   shape-rendering: crispEdges;
 }
+
+.dot {
+  fill: steelblue;
+  stroke: steelblue;
+  stroke-width: 1.5px;
+}
index ec48e75..f242133 100644 (file)
@@ -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;
 }