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

上一篇: dc.js boxplot b.map(...)。sort不是一个函数

下一篇: crossfilter如何简单地从一组中的值中获得总和