I have an object like:
[ { "Project": 1; "key":["a", "b", "c", "d"]},
{ "Project": 2; "key":["b", "c", "d"]},
{ "Project": 3; "key":["e", "c", "a"]},
{ "Project": 4; "key":["b", "a", "e", "f"]}
]
so far as I have implemented, reduceCount only counts the occurrence of single element value. I want to change it into something
key value
a 3
b 3
c 3
d 2
e 2
f 1
I want to count it on the times it appear in an individual project like "a" has appeared in 3 projects. Actually this data I want to use in my wordcloud.
I can do this outside crossfilters but not sure how can I achieve this through crossfilters dimensions.
Any assistance is appreciable.
SOLUTION as referred by Ethan Jewett