Skip to content

Commit 6d9a24f

Browse files
committed
model is no longer singleton
1 parent c7520f9 commit 6d9a24f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/traces/parcoords/devtesting/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ data.unitToColor = require('./colors');
2222
*/
2323

2424
parcoords(div,
25-
data, // .filter(function(d) {return true || !d.integer}).slice(0, Infinity),
25+
[data, data], // .filter(function(d) {return true || !d.integer}).slice(0, Infinity),
2626
mock.layout
2727
);
2828

src/traces/parcoords/parcoords.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ module.exports = function(root, styledData, layout, callbacks) {
213213
}
214214

215215
var parcoordsModel = d3.select(root).selectAll('.parcoordsModel')
216-
.data([model(layout, styledData)], keyFun);
216+
.data(styledData.map(model.bind(0, layout)), keyFun);
217217

218218
parcoordsModel.enter()
219219
.append('div')

0 commit comments

Comments
 (0)