Có thể có bảng dữ liệu dc mà không hiển thị dữ liệu trong nhóm không? Tôi chỉ muốn hiển thị tất cả dữ liệu trên tất cả các nhóm!dc có thể đặt dữ liệu mà không cần nhóm các hàng
Mã của tôi là như sau:
dc.dataTable(".dc-data-table")
.dimension(dateDimension)
.group(function (d) {
return ''
})
.size(10) // (optional) max number of records to be shown, :default = 25
.columns([
function (d) {
return getFormattedDate(d.dd);
},
function (d) {
return d.referredfor;
},
function (d) {
return numberFormat(d.cost);
},
function (d) {
return d.gender;
}
])
.sortBy(function (d) {
return d.dd;
})
.order(d3.ascending)
.renderlet(function (table) {
table.selectAll(".dc-table-group").classed("info", true);
});
Điều này cho thấy bảng dữ liệu của tôi nhưng với một dòng sản phẩm nào giống như vậy: