/* The root panel. */ var vis = new pv.Panel() .width(w) .height(h) .left(20) .right(20) .top(20) .bottom(20); /* Rule and label per dimension. */ vis.add(pv.Rule) .data(dims) .left(x) .anchor("bottom").add(pv.Label); /* The parallel coordinates display. */ vis.add(pv.Panel) .data(cars) .visible(function(d) dims.every(function(t) (d[t] >= filter[t].min) && (d[t] <= filter[t].max))) .add(pv.Line) .data(dims) .left(function(t, d) x(t)) .bottom(function(t, d) y[t](d[t])) .strokeStyle(function(t, d) c[active](d[active])) .lineWidth(1);