问题
I am working with multiple brushes each of which activate the same function within d3.brushX().on('end',samefunction()). What i need is the d3.event to return the brush that was activated since i am programatically controlling them.
I've searched through the BrushEvent, but cannot seem to find anything cooresponding to the brush that was activated. Also i cannot use the sourceEvent from the BrushEvent because i am clicking a button and not the actual brush.
来源:https://stackoverflow.com/questions/58468426/can-d3-brushevent-return-the-activated-brush