I am a Crossfilter newbie and trying to figure out how to create specific group and dimension for a given group. To be specific, here is simplified JSON I am playing with:
[
{"name": "New York","count": 354,"terms": [{"name": "N/A","hits": 200 }, {"name": "Brooklyn","hits": 225},{"name": "Queens","hits": 1}},
{"name": "San Francisco","hits": 120,"terms": [{"name": "Chinatown","hits": 268},{"name": "Downtown","hits": 22}},
{"name": "Seattle","hits": 34,"terms": [{"name": "N/A","hits": 2},{"name": "Freemont","hits": 25}}
]
I already have a pie chart in which each piece represents the cities. Now what I want to do is when I click on a specific pie (say "New York"), I want to have a row chart that shows the terms array value for New York as a dimension. I am not sure if I am using the right terminology here, but I want to essentially use pie chart as the summary view and row chart as drill-down to show terms for each city.
How do I do that with Crossfilter? I am actually using dc.js, but I still have to create the dimensions and groups for Crossfilter before dc.js renders it for me.