Reductio is a Javascript library that makes it easy to do complex, efficient aggregations using Crossfilter
Questions tagged [reductio]
39 questions
1
vote
1 answer
Trouble calculating nth percentile with reductio
I've got some crossfilter data with dates (d) and values (v):
[
{d: "2013-07-26T00:00:00.000Z", v: 2.5}
{d: "2013-07-25T00:00:00.000Z", v: 2.64}
// ...and many more
[
I've created a group for the months in Crossfilter…

DMack
- 871
- 2
- 9
- 21
1
vote
1 answer
Remove empty groups from dc.js graph
I have gone through all the SO questions on removing empty bins from a dc.js graph but couldn't find anything besides the fake group approach
filter_group = function(oldGroup) {
return {
all: oldGroup.all().filter(...)
};
}
newGroup…

Chapo
- 2,563
- 3
- 30
- 60
1
vote
1 answer
Mixing custom function with predefined ones in reductio for crossfilter
I am trying to use both the .std() and the .custom() function in the reductio library.
My code is as follows for the reductio part:
dims.theme1 = myCrossfilter.dimension(function(d) {return(d.theme1);});
groups.theme1 = dims.theme1.group();
var…

Chapo
- 2,563
- 3
- 30
- 60
1
vote
0 answers
Grouping multiple moving averages in dc.js
I have a dc.js example going where I'd like to calculate moving averages over two different windows of the dataset and group them. Ultimately, I'd like to also group the ratio between the two moving averages with them so I can access them using a…

G A S
- 23
- 5
1
vote
1 answer
How can I group data to be filtered without losing crossfilter functionality using dc.js?
I'm trying to learn d3 via dc.js and I'm quite stuck trying to figure out how to group the line chart with only the w15sec, w30sec,...,w1hr, names and values. When the filter is applied, I'd like it show only the max value for workouts that are…

G A S
- 23
- 5
1
vote
1 answer
Standard error calculation using Crossfilter reductio plugin?
Is there any way to implement standard error in cross filter reductio plugin. I will get all the values on measures of central tendency except {SE}
Any helps appriaticated..
var CFX = crossfilter([
{ foo: 'one', bar: 1 },
{ foo: 'two',…

Aravind Cheekkallur
- 3,157
- 6
- 27
- 41
1
vote
1 answer
dc.js boxplot b.map(...).sort is not a function
I am trying to generate box plot. After creating dimension and group I've followed the example given at
https://github.com/dc-js/dc.js/blob/master/web/examples/box-plot.html
I'm using reductio to make the reductions easier:
var ndx =…

bashhike
- 129
- 1
- 10
1
vote
1 answer
geoChoroplethChart is black with two option of value for one key
I have the next data works with dc.js and geoChoroplethChart,
var data = crossfilter([
{ state: 'one', bar: 'A', num: '1' },
{ state: 'two', bar: 'B', num: '2' },
{ state: 'three', bar: 'A', num: '3' },
{ state: 'one', bar: 'B', num: '3' },
{…

aey
- 147
- 7
1
vote
2 answers
Is it possible to use .exceptionCount(true) twice?
i have a problem, I want to count the different elements of bar and num associated with foo
var data = crossfilter([
{ foo: 'one', bar: 'A', num: '1' },
{ foo: 'two', bar: 'B', num: '2' },
{ foo: 'three', bar: 'A', num: '3' },
{ foo: 'one', bar:…

aey
- 147
- 7
1
vote
1 answer
How to delete the repeated data in crossfilter?
I have the following problem, I want to make a boxplot (with dc.js) per service (A, B, C, D) to represent (q1, q2, q3, q4 and outliers) the time each is delayed.
My data contains an id, category, the time it takes and other data, the problem is that…

aey
- 147
- 7
1
vote
0 answers
Plotting unique values from a single column in a dc.js box plot
What i am trying to do is plot data from a single column as a box plot in dc.js
My aim here is outlier detection. When i plot the unique numerical values from a column, i should be able to spot the outliers on the box plot.
Now i am having a tough…

anmol koul
- 512
- 5
- 21
1
vote
1 answer
Conditional coloring in DC chart
I wanted to comment on the following:
Conditional coloring in dc charts
How can we define the lower and upper bounds of a colorDomain to reflect automatically the min and max values of a specific group ? For instance applying a filter, I want to…

Matthieu Maurice
- 61
- 3
1
vote
1 answer
How to use Reductio's Exception Aggregation function on multiple columns of data?
I'm working on a data visualisation project, and I'm using the dc.js library. After converting the data into a flat data structure (for cross filter), the data looks like…

Vanessa Tan
- 97
- 2
- 13
1
vote
1 answer
DC.js Ordering with filters
Hi I am ordering the x values in my bar chart with .ordering. It orders correctly. However on filtering on other linked charts the ordering doesn't change. How do I achieve this behaviour?
Also ordering for me only works when I am overriding the…

bashhike
- 129
- 1
- 10
1
vote
1 answer
Using aggregates as a label in DC.JS
I'm creating a tool to do some data analysis on surgical material cost.
I would like to be able to aggregate total number of items per PO and divide it by number of levels per PO. Levels is flat and the same for each PO line, while total number is a…

Wesley
- 5,381
- 9
- 42
- 65