Javascript 平行坐标系下的画笔函数

Javascript 平行坐标系下的画笔函数,javascript,d3.js,parallel-coordinates,Javascript,D3.js,Parallel Coordinates,在中的并行坐标代码中,我无法正确理解画笔函数 function brush() { var actives = dimensions.filter(function(p) { return !y[p].brush.empty(); }), extents = actives.map(function(p) { return y[p].brush.extent(); }); foreground.style("display", function(d) {

在中的并行坐标代码中,我无法正确理解画笔函数

function brush() {
     var actives = dimensions.filter(function(p) { return !y[p].brush.empty(); }),
         extents = actives.map(function(p) { return y[p].brush.extent(); });
     foreground.style("display", function(d) {
         return actives.every(function(p, i) {
                          return extents[i][0] <= d[p] && d[p] <= extents[i][1];
        }) ? null : "none";
     });
}
这个代码中的p是什么?我是什么


在代码的这一部分中,返回范围[i][0]p是正在操作的对象之一,即维度或活动对象。i是各个元素的索引。谢谢您的回答。我如何修改代码以获得数据块[I][0]和数据块[I][1]之间的数据索引?那将只是I,不是吗?