diff options
author | Dan McGee <dan@archlinux.org> | 2012-11-11 23:40:21 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-11-11 23:40:21 +0100 |
commit | 99bfdda5f257107396179694b7c56aad8e5e6701 (patch) | |
tree | b7a6550c6aa1594d62903d4a6945ba93f78dbbf6 | |
parent | d616a40cf57d417775d7277a6d03f51c2967e8d9 (diff) | |
download | archweb-99bfdda5f257107396179694b7c56aad8e5e6701.tar.gz archweb-99bfdda5f257107396179694b7c56aad8e5e6701.tar.xz |
Add title to mirror status data points
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r-- | mirrors/static/mirror_status.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mirrors/static/mirror_status.js b/mirrors/static/mirror_status.js index decc8fb..8ec85c4 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") |