dc.js icon indicating copy to clipboard operation
dc.js copied to clipboard

PieChart doesn't update it's own filter

Open pdaems opened this issue 13 years ago • 1 comments

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.

screenshot

screenshot2

              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 ?

pdaems avatar Apr 11 '13 07:04 pdaems

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.

NickQiZhu avatar Apr 11 '13 15:04 NickQiZhu