Add title to mirror status data points

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2012-11-11 16:40:21 -06:00
parent d616a40cf5
commit 99bfdda5f2

View File

@ -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")