If you create a โunique dimensionโ that returns a unique value for each record in your dataset (for example, an identifier column), you can have a function to make changes to one record without dropping all:
function editEntry(id, changes) {
uniqueDimension.filter(id);
var selectedEntry = uniqueDimension.top(1)[0];
_.extend(selectedEntry, changes);
ndx.remove();
ndx.add([selectedEntry]);
uniqueDimension.filter(null);
dc.redrawAll();
}
source
share