Is it possible to have a dc data table without showing the data in groups? I just want to show all the data across all groups!
My code is as follows:
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);
});
This shows my data table but with an empty row like so: