summaryrefslogtreecommitdiff
path: root/mirrors
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-11-11 16:40:21 -0600
committerDan McGee <dan@archlinux.org>2012-11-11 16:40:21 -0600
commit99bfdda5f257107396179694b7c56aad8e5e6701 (patch)
treeb7a6550c6aa1594d62903d4a6945ba93f78dbbf6 /mirrors
parentd616a40cf57d417775d7277a6d03f51c2967e8d9 (diff)
Add title to mirror status data points
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'mirrors')
-rw-r--r--mirrors/static/mirror_status.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/mirrors/static/mirror_status.js b/mirrors/static/mirror_status.js
index decc8fb8..8ec85c40 100644
--- a/mirrors/static/mirror_status.js
+++ b/mirrors/static/mirror_status.js
@@ -81,7 +81,9 @@ function mirror_status(chart_id, data_url) {
.attr("r", 3.5)
.attr("cx", function(d) { return x(d.check_time); })
.attr("cy", function(d) { return y(d.duration); })
- .style("fill", function(d) { return color(d.url); });
+ .style("fill", function(d) { return color(d.url); })
+ .append("title")
+ .text(function(d) { return d.url + "\n" + d.duration.toFixed(3) + " secs\n" + d.check_time.toUTCString(); });
/* add a legend for good measure */
var legend = svg.selectAll(".legend")