{
svg.selectAll('line').remove()
svg.selectAll('circle').remove()
svg.selectAll('circle')
.data(myData)
.enter()
.append('circle')
.attr('cx', (d) => xScale(d.year))
.attr('cy', (d) => yScale(d.total))
.attr('r', (d) => d.importance/2)
.attr('fill', 'red')
svg.selectAll('line')
.data(myData)
.enter()
.append('line')
.attr('x1', (d) => xScale(d.year))
.attr('x2', (d) => xScale(d.year))
.attr('y1', (d) => yScale(0))
.attr('y2', (d) => yScale(d.total))
.attr('stroke', 'blue')
.attr('stroke-width', (d) => 1)
}