open new window linking to the issue
This commit is contained in:
parent
c5550c55b6
commit
1d9f887612
|
@ -16,7 +16,7 @@ module.exports =
|
||||||
min = +Infinity ; max = -Infinity
|
min = +Infinity ; max = -Infinity
|
||||||
|
|
||||||
# Generate the actual closes.
|
# Generate the actual closes.
|
||||||
rest = _.map collection, ({ closed_at, size, title }) ->
|
rest = _.map collection, ({ closed_at, size, title, html_url }) ->
|
||||||
min = size if size < min
|
min = size if size < min
|
||||||
max = size if size > max
|
max = size if size > max
|
||||||
{
|
{
|
||||||
|
@ -24,6 +24,7 @@ module.exports =
|
||||||
points: total -= size
|
points: total -= size
|
||||||
size
|
size
|
||||||
title
|
title
|
||||||
|
html_url
|
||||||
}
|
}
|
||||||
|
|
||||||
# Now add a radius in a range (will be used for a circle).
|
# Now add a radius in a range (will be used for a circle).
|
||||||
|
@ -149,10 +150,14 @@ module.exports =
|
||||||
tooltip = null
|
tooltip = null
|
||||||
|
|
||||||
# Show when we closed an issue.
|
# Show when we closed an issue.
|
||||||
svg.selectAll("circle")
|
svg.selectAll("a.issue")
|
||||||
.data(actual[1...]) # skip the starting point
|
.data(actual[1...]) # skip the starting point
|
||||||
.enter()
|
.enter()
|
||||||
.append("circle")
|
# A wrapping link.
|
||||||
|
.append('svg:a')
|
||||||
|
.attr("xlink:href", ({ html_url }) -> html_url )
|
||||||
|
.attr("xlink:show", 'new')
|
||||||
|
.append('svg:circle')
|
||||||
.attr("cx", ({ date }) -> x date )
|
.attr("cx", ({ date }) -> x date )
|
||||||
.attr("cy", ({ points }) -> y points )
|
.attr("cy", ({ points }) -> y points )
|
||||||
.attr("r", ({ radius }) -> 5 ) # fixed for now
|
.attr("r", ({ radius }) -> 5 ) # fixed for now
|
||||||
|
|
Loading…
Reference in New Issue