can d3 BrushEvent return the activated brush?

倖福魔咒の 提交于 2020-03-05 02:53:27

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!