Use of additional groups in dc.js dataCount widget

I'm a bit confused with respect to the implementation of the dataCount widget in the dc.js framework.

countProjectsLaunched
    .dimension(ndx2)
    .group(all)

Managed to get the above to work, but the dimension appears to actually be a crossfilter object.

I wanted to implement a predefined group such as

var projectsLaunchedByWeeks = weeksStatus.group()
   .reduceSum(function(d) { return d.projects_launched; });

but I get the same problem each time:

_chart.group(...).value is not a function

How is it possible to implement a different grouping functions?

I want to be able to sum up the number of projects launched during a period, not just the entire recordset.

Thanks

链接地址: http://www.djcxy.com/p/32796.html

上一篇: 使用crossfilter和dc.js创建自定义减少功能

下一篇: 在dc.js dataCount小部件中使用其他组