1
试图在我的项目升级D3支持,但错误提示: Cannot read property 'drag' of undefined
它通过使用d3.behavior.drag()
行为不是在D3 V4
这里造成的行为为V3 https://github.com/mbostock/d3/wiki/Behaviors
文档但它似乎不支持在v4中 https://github.com/mbostock/d3/tree/4
这是API已经在路线图,或有一些赌注如何实现行为?