我正在使用 NVD3 创建平行坐标图:https ://github.com/novus/nvd3/blob/master/examples/parallelCoordinates.html
但不清楚如何更改每个维度的颜色?
nv.addGraph(function() {
chart = nv.models.parallelCoordinates()
.dimensions(["name", "attr1", "attr2", "attr3", "attr4"]);
d3.select('#chart svg')
.datum(array)
.call(chart);
nv.utils.windowResize(chart.update);
return chart;
});
}