Javascript – How do you create a pie chart of subitems using a crossfiltered powered dc.js chart?
Suppose I have a list of customers with their orders: const customers = [ { id: 1, orders: [{ products: ["apple", "banana"] }, { products: ["apple"] }] }, { id: 2, orders: [{ products: ["strawberry"] }] }, { id: 3,…