square / crossfilter

Fast n-dimensional filtering and grouping of records.
https://square.github.com/crossfilter/
Other
6.22k stars 1.31k forks source link

How to manage three dimensions in crossfilter #168

Closed abdulqudoos closed 8 years ago

abdulqudoos commented 8 years ago

We have data of cricket players according to their rating of three types, i.e("odi-batting","test-batting","t20-batting"). Now problem is that we want to show bar graph of each type. e.g we have pie chart of following three tags, ODI,T20,Test... when I click on ODI then bar chart show me rating of only ODI players, when I click on T20 tag, then bar chart only show me only rating of T20 players and so on. I am confusing , how I group this data. If I use reduceSum here then it sums of "A.B. de Villiers" all rating of three types, what should I do here so I get accurate results using crossfilter. {
"Rat": "900", "Name": "A.B. de Villiers",
"rankType": "odi-batting" }, {
"Rat": "881", "Name": "A.B. de Villiers",
"rankType": "test-batting" }, { "Rat": "493", "Name": "A.B. de Villiers",
"rankType": "t20-batting" }, . . .... Thank you

RandomEtc commented 8 years ago

Apologies for silence here. Please ask questions on http://stackoverflow.com/questions/tagged/crossfilter and note that as discussed in #151 an active fork is being developed in a new Crossfilter Organization.