function drawTalks(ted_data, plotContainer, circleGroups) {
d3.select('#talks-vis').selectAll("circle").remove();
d3.select('#talks-vis').selectAll("#label").remove();
circleGroups.append('circle')
.data(ted_data, d => d.name)
.join(
(enter) => enter.append("circle"),
(update) => update,
(exit) => exit.remove()
)
.attr('r', 5)
.attr('cx', d => xScale(d.views))
.attr('cy', d => yScale(d.comments))
.attr("fill", "#FEDD00")
.attr("opacity", 0.5)
.on('mouseover', function (event, d) {
d3.select(this).style('stroke', 'black');
plotContainer.append('text')
.attr('class', 'ptLabel')
.attr('x', xScale(d.views) - 10)
.attr('y', yScale(d.comments) - 10)
.text(d.name);
})
.on('mouseout', function(event, d) {
d3.select(this).style('stroke', 'none');
plotContainer.selectAll('.ptLabel').remove()
});
}