最佳答案
你必须使用假组
const remove_empty_bins = (source_group) => {
return {
all: () => {
return source_group.all().filter(function(d) {
// here your condition
return d.key !== null && d.key !== '' && d.value !== 0; // etc.
});
}
};
}
let myFilteredGroup = remove_empty_bins(myGroup);
关于javascript - 我如何从 dc.js 行图表中删除空条,每当维度为 null 或空时,行图表上会出现一个空条,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44587863/