12 apr. 2018 - You could use your solution by modifying the d3 selection prototype (as opposed to the object prototype, I don't think that could be considered .