Crossfilter reductio post cap
<p>I am having trouble trying to use reductio's post().cap functionality. My dataset is like so.</p>

<pre><code>[{foo: 'one', bar: 'B', hits:10},
{foo: 'one', bar: 'B', hits:20},
{foo: 'two', bar: 'B', hits:50},
{foo: 'two', bar: 'B', hits:100},
{foo: 'one', bar: 'A', hits:150}.........]
</code></pre>

<p>What I am looking for is </p>

<pre><code>[key: 'B', value:{count=4, sum=180}, 
key: 'A', value:{count=1, sum=150},
key: 'others', value:{count=7, sum=60}]
</code></pre>

<p>I have a foo dim setup as</p>

<pre><code>var barDim = ndx.dimension(function(d){ return d.bar; });
var barGroup = reductio().count(true).sum('hits')(barDim.group());
</code></pre>

<p>Thanks in advance!</p>

<p><a href="https://github.com/crossfilter/reductio#grouppostcaplength" rel="nofollow">reductio cap functionality </a></p>