- Create new functions for
dragStartand `` dragEnd`` - initially print out 'drag started' and 'drag ended'
- Use events start and end to trigger the function
- change color of circle when drag starts
- revert color back when drag ends
you can identify the circle you have chosen in the function with
d3.select(this)
If you assign the above line to a variable such as current, you can then do
current.style('fill', 'red')