Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用此链接的平行坐标示例 https://bl.ocks.org/jasondavies/1341281
我想为特定轴设置初始范围值...谁能告诉我..
d3.select(this).call(y[d].brush = d3.svg.brush().y(y[d]).extent([1.3, 1.8]).on("brush",brush)) ;
只是通过添加extent([min.max])更改了这一行,这将绘制画笔但不会触发事件来更新前景-背景。所以最后需要手动调用brush()。