d3js remove last tspan node

74 views Asked by At

I have something similar to this

var textBox = somecontainer.append('text')
...
textBox.append('tspan').text('First ')
textBox.append('tspan').text('Second ')
textBox.append('tspan').text('Third ')
...
textBox.append('tspan').text('nth ')

Later on I need to remove programatically the last child tspan node from the textBox stack. How ?

0

There are 0 answers