rects = {
svg.append('g')
.attr('id', 'manyDots')
.attr('clip-path', 'url(#scatterclip)')
.selectAll('circle')
.data(countries)
.enter()
.append("line")
.attr("x1", function(d) {
return x_scale(d.Country);
})
.attr("x2", function(d) {
return x_scale(d.Country);
})
.attr("y1", chart_height - margin)
.attr("y2", function(d) {
return y_scale(d.Flight_of_refugees_and_IDPs);
})
.attr("stroke", "#ddd")
.attr("stroke", "blue")
.attr("stroke-width", 3)
.append('title')
.text(function(d){
return d.Country + " " + d.Flight_of_refugees_and_IDPs
});
return svg.node()
}