dc-js / dc.js

Multi-Dimensional charting built to work natively with crossfilter rendered with d3.js
Apache License 2.0
7.42k stars 1.81k forks source link

dataTable + showSections = missing row #1851

Closed savostin closed 2 years ago

savostin commented 2 years ago

Hello. It seems dataTable "eats" one (first) row of each section when showSections is true. let data = crossfilter([ { time: 1, name: 'one' }, { time: 1, name: 'two' }, { time: 1, name: 'three' }, { time: 2, name: 'four' }, { time: 2, name: 'five' }, { time: 3, name: 'six' } ]); let dimension = data.dimension(d => d); let chart = dc.dataTable('#table'); chart .dimension(dimension) .columns(['time', 'name']) .section(d => d.time) .showSections(true) .size(Infinity); dc.renderAll();

The 'one', 'four' and 'six' rows disappear. They of course appear when showSections is false.

savostin commented 2 years ago

Sorry, I were using modified dc.js source :(