Reductio is a Javascript library that makes it easy to do complex, efficient aggregations using Crossfilter
Questions tagged [reductio]
39 questions
7
votes
1 answer
How to generate a rolling std line chart in dc.js/reductio/crossfilter
I want to show a line graph with rolling std over the sum of values for an interval of dates.
The code for the generation of the crossfilter/reductio object is :
myCrossfilter = crossfilter(data);
function getRunningDates(numDays) {
return…

Chapo
- 2,563
- 3
- 30
- 60
2
votes
1 answer
How to count unique value per key with multiple values array ? / DC.js - Crossfilter - Reductio
Hi, i need to make a barchart with these type of data set.
How to make exceptionCount for each productIDs at each days like this :
For day 2011-11-14 count 3 occurs (001, 004, 005), etc...
Tried many methods, like reductio, unique count, but didn't…

Barsa
- 33
- 5
2
votes
1 answer
rows do not zero out as expected
While filtering on another chart, my row top charts give non-sensical infinitesimal values where I would expect zeros.
I think the issue comes from the fact that when you filter on a value that is not initially in the top values, dc doesn't know to…

Chapo
- 2,563
- 3
- 30
- 60
2
votes
1 answer
Avoid multiple sums in custom crossfilter reduce functions
This question arise from some difficulties in creating a crossfilter dataset, in particular on how to group the different dimension and compute a derived values. The final aim is to have a number of dc.js graphs using the dimensions and…

rafforaffo
- 511
- 2
- 7
- 21
2
votes
1 answer
How to create a group from a group in crossfilter/reductio?
With the following data:
const now = new Date
const data = [
{ player: 'bob', color: 'blue', date: new Date(+now + 1000) },
{ player: 'bill', color: 'green', date: new Date(+now + 2000) },
{ player: 'bob', color: 'red', date: new Date(+now +…

oof
- 21
- 2
2
votes
1 answer
DC.js Reductio - Display cumulative average of values within date range DC
I'm attempting to continue building a baseball statistics dashboard and seem to have hit a wall once again.
I have an array of records representing statistics for a game and would like to produce a barchart with a single bar that represents the…

JSchins
- 117
- 10
2
votes
1 answer
Dividing aggregate by aggregate (D3 / DC/ Crossfilter / Reductio)
Fiddle for Reference: https://jsfiddle.net/33228p1d/4/
Referencing Cost Average chart on the page. Chart rendered with the following code:
var cpa = ndx.dimension(function (d) {
return d.location;
});
var cpaGroup = cpa.group().reduceSum(function…

Wesley
- 5,381
- 9
- 42
- 65
2
votes
1 answer
dc.js reductio helper function, how to get output in object format
I am learning the wonderful libraries, dc.js and crossfilter.js and am making an example using a geochoropleth map.
I want to feed in some data and have the map draw the specific countries but the countries are not showing up. This is part of a…

user2517542
- 69
- 8
1
vote
1 answer
How to include constant string values to reduced values (Crossfilter and Reductio)
Given a data that looks like:
data = [
{
"partner": "ABCD",
"category": "CORTICOSTERIODS",
"name": "NP Slow Meedrol Methylprednisolone Sodium Succinate Injection USP 500mg x 1 Vial",
"price_sum": 22288.00,
…

I.Ewetoye
- 183
- 13
1
vote
1 answer
fake group and filtering dc.js
I have had to create a cumulative sum group and a remove_zero group for my project.
The issue arises when I combine them and filters on another dimension. It looks like the filter is not taken into account in my cumulative sum fake group.
I have put…

Chapo
- 2,563
- 3
- 30
- 60
1
vote
1 answer
2 lines LineGraph in dc-js
I might have missed something obvious but how do you plot a non-stacked line chart in dc-js ?
I have used the example jsFiddle as a base to try and add a second group to the lineChart definition but to no avail here :…

Chapo
- 2,563
- 3
- 30
- 60
1
vote
0 answers
How to get reductio to work with crossfilter2 using webpacker in Rails 6
I'm in the midst of upgrading my app from Rails 5.2 to Rails 6.0, and am also trying to migrate some things over to webpacker, including crossfilter (which is now crossfilter2) and reductio, and after spending several hours, I'm no closer on…

xfactorial
- 161
- 1
- 8
1
vote
2 answers
custom reduce functions in crossfilter on 2 fields
My data looks like this
field1,field2,value1,value2
a,b,1,1
b,a,2,2
c,a,3,5
b,c,6,7
d,a,6,7
The ultimate goal is to get value1+value2 for each distinct value of field1 and field2 : {a:15(=1+2+5+7),b:9(=1+2+6),c:10(=3+7),d:6(=6)}
I don't have a good…

Chapo
- 2,563
- 3
- 30
- 60
1
vote
1 answer
crossfilter dimension on 2 fields
My data looks like this
field1,field2,value1,value2
a,b,1,1
b,a,2,2
c,a,3,5
b,c,6,7
d,a,6,7
I don't have a good way of rearranging that data so let's assume the data has to stay like this.
I want to create a dimension on field1 and field2 combined…

Chapo
- 2,563
- 3
- 30
- 60
1
vote
0 answers
crossfilter Reduce get minimum value

Vasim
- 3,052
- 3
- 35
- 56