Skip to content

Commit

Permalink
fixed tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
dauglyon committed Mar 29, 2018
1 parent a57b9db commit 4437560
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,16 +380,18 @@ export default function(){

var tooltip = newSvg.append("a")
.classed("grapgr-tooltip",true)
.attr('opacity',0)
.attr('transform', 'translate(' + 0 + ',' + -100 + ')')
.attr("target","_blank");
tooltip.append('rect')
.attr('x',-2).attr('y',-2)
.attr('x',-2).attr('y',-15)
.attr('width',100)
.attr('height',16)
.attr('fill','black');
tooltip.append('text')
.attr('fill','white')
.attr('text-decoration','underline')
.attr('y',10)
.attr('y',-3)
.attr('x',1)
.attr('font-size','12');
tooltip = tooltip.merge(d3.select('.grapgr-tooltip'));
Expand Down

0 comments on commit 4437560

Please sign in to comment.