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