crossfilter how to simply get the sum total from the values in a group
Given a crossfilter group that reduce to a key-value pair of something like:
[
{ key: A, value: 75 },
{ key: B, value: 35 }
]
(pie chart type data), how to you go about getting the sum of the values (110 in this case)? is there a quick xfilter method I am unable to find?
Example Fiddle Here
链接地址: http://www.djcxy.com/p/32804.html