tooltip = {
chart
const tooltip = d3.select("body").append("div")
.attr("class", "svg-tooltip")
.style("position", "absolute")
.style("visibility", "hidden");
d3.selectAll("circle")
.on("mouseover", function(event, d){
tooltip.style("visibility", "visible").text(d.title);
})
.on("mousemove", function(event){
tooltip.style("top", (event.pageY-10)+"px").style("left",(event.pageX+10)+"px");
})
.on("mouseout", function(){
tooltip.style("visibility", "hidden");
});
return tooltip;
}