dc.js
dc.js copied to clipboard
PieChart doesn't update it's own filter
I have build some custom dropdownlists under the dc datatable so i can filter in the table aswell without clicking on the matching pie chart.
Whenever the dropdownlist changes i filter on the dimension. All my pie charts are updated except the one with the same dimension.


function filterobject(waarde) {
if (waarde.value == "Object") {
object.filter(null);
} else {
object.filter(waarde.value);
}
dc.redrawAll();
}
object = calls.dimension(function (d) {
return d[9];
});
var objectGroup = object.group();
Is this a bug or am i missing something ?
This is correct behaviour, crossfilter dimension does not filter itself. You create 2 dimension using the same field separately if you want to filter the same field.