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
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