score:0

That's an easy one! :)

Pseudo code:

data = []
for each region
 for each centre
  data.push(one data object like {region: "...", ...})
c = crossfilter(data)
r = c.dimension(function returning region name)
g = r.group(String)
allRegionsHist = g.top(Infinity)
for each allRegionsHist
 construct one column

Related Query

More Query from same tag