Answer to my own question in:
http://stackoverflow.com/questions/41720431/using-dimensions-with-arrays-in-dc-js-crossfilter
Based on previous approaches, described in answers here:
http://stackoverflow.com/questions/17524627/is-there-a-way-to-tell-crossfilter-to-treat-elements-of-array-as-separate-record
This works well with row charts and pie charts in dc.js.
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.js
https://cdnjs.cloudflare.com/ajax/libs/crossfilter2/1.4.0-alpha.6/crossfilter.js
https://cdnjs.cloudflare.com/ajax/libs/dc/2.1.1/dc.js