I am currently working with an array of data objects that have the following structure:
{
index: "M1",
first: "First",
last: "Last",
distance: 5,
specialties: ["Pediatrics", "Internal"],
languages: ["English", "French"]
}
While I am able to filter by distance using crossfilter, I am also interested in filtering by specialty. After reviewing this question, I found a way to obtain counts for each specialty across the entire dataset.
However, what I would really like is to display matching specialties based on the distance filter and use those specialties to further refine my results. Is there a way to accomplish this given the current structure of my objects? Or would it be beneficial to reorganize the data for better filtering capabilities?
Any suggestions or insights on how to achieve this would be greatly appreciated. You can view the demo here: http://jsfiddle.net/colin_young/xRQjX/35/