change d3.nest to d3.groups and fix improper scale domain for d3@6
change d3.nest to d3.groups and fix improper scale domain for d3@6

for #1769

dc-js/dc.js,dc-js/dc.js,dc-js/dc.js,dc-js/dc.js,dc-js/dc.js