summaryrefslogtreecommitdiffstats
path: root/reporting/js
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2016-10-03 09:52:27 +0200
committerMorgan Richomme <morgan.richomme@orange.com>2016-10-03 09:52:27 +0200
commit187b02f0a32a69f81a275fa84a450e14a3020200 (patch)
treebe7d5821af3ce525ecb7fdbed3b7e659e5479f46 /reporting/js
parentdee83b0ad3a67feae2c578a9984584f2466f5c66 (diff)
Add dots in trend line
JIRA: FUNCTEST-483 Change-Id: I014faccf9358fff5c47d4be6f4d8f55fd7133691 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
Diffstat (limited to 'reporting/js')
-rw-r--r--reporting/js/trend.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/reporting/js/trend.js b/reporting/js/trend.js
index ec48e75..f242133 100644
--- a/reporting/js/trend.js
+++ b/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;
}