diff --git a/main.js b/main.js index 8371710..b6c0844 100644 --- a/main.js +++ b/main.js @@ -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'));