D3.js selection.interrupt() Function
The selection.interrupt() function in D3.js is used to interrupts the active transition of the specified name on the selected elements, and cancels any pending transitions with the specified name. Syntax: selection.interrupt([name])Parameters: This function accepts the following parameter as mention