I am putting together an interactive visualization of some public health data in dc.js. I want users to be able to filter by a set of variables (e.g. type of medical facility, region) using pie charts. Below these filters, in rowcharts, I want to display ten facilities with the largest number of patients.
The issue I am running into is that the rowcharts only display the top ten results from the whole dataset. Ideally, I would filter based on facility type/region and then see the top ten bars from that subsection of the data. Right now, I only see the one or two bars from the overall top ten.
My question is whether DC.js and crossfilter support nested dimensions where I could filter on the first dimension (by facility type/region) and display data from the second dimension. That may also be the wrong approach for other reasons.
I can try to put together a jsfiddle to demonstrate my current situation. However, information about whether nested dimensions exist (or apply to this situation) would also be helpful.
capoptions. If you can share a JSFiddle, we should be able to help you. - Ethan Jewett