summaryrefslogtreecommitdiffstats
path: root/reporting/js/trend.js
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
commitd994e22c2d4a5b606bf0b7f94f42b289bdd64be5 (patch)
treef2dadce7c758bda6d248b81b71a80bcf3f2dd1e7 /reporting/js/trend.js
parent7e9232a111f296827f87c59479f8a22b9e5b8a6a (diff)
parent187b02f0a32a69f81a275fa84a450e14a3020200 (diff)
Merge "Add dots in trend line"
Diffstat (limited to 'reporting/js/trend.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;
}