Does anyone know a good hack to hide a row from a row chart in crossfilter/dc.js, that is do not chart a particular key.
I want to show some relevantly small %s and hide the 99% which fits in the other category (and prevent a user from filtering on the row).
This doesn't work...as it filters the data
function remove_bins(source_group) {
return {
all:function () {
return source_group.all().filter(function(d) {
return d.key = 1;
});
}
} };
var filtered_group = remove_bins(myGroup);
Where I just need to prevent the chart from displaying the huge row. Preferably done within the chart, I expect.
Any ideas welcome!
Ryan.