Questions tagged [reductio]

Reductio is a Javascript library that makes it easy to do complex, efficient aggregations using Crossfilter

39 questions
1
vote
1 answer

How to make row chart for multilabel data in dc.js

I have data with one column that is a list of labels for each data point. I would like to use dc.js to make a row chart that plots the number of occurrences of each label. Data looks like this: Date , Labels 1/1/2015 , "A, B, C" 1/2/2015 ,…
Eric
  • 244
  • 5
  • 10
0
votes
0 answers

dc.js reductio error. I need to get unique counts of items that are repeated (and dependent) on other items

In my project, the data looks like teacher,total_students,date,activity_type,activity_subject,project_id,teacher_id,student,submission_date,n_of_words,vocabulary_used,section_number,student_grade,grading_rubric,grading_score …
0
votes
1 answer

Average in Crossfilter and DC.js

In my application, I have two charts and one table. The charts names are sellerChart and dateUnitPriceChart and table name is datatable.For sellerChart, I create dimension like this and then draw a chart : var sellerDimension =…
MBehtemam
  • 7,865
  • 15
  • 66
  • 108
0
votes
1 answer

reductio Max of a sum

I have a dataset I'm working with that is buildings and electrical power use over time. There are two aggregations on these buildings that are simple sums across the entire timespan and I have those written. They end up looking like: var reducer =…
K.Tibbs
  • 1
  • 2
0
votes
1 answer

DCjs-Crossfilter grouping keys based on values

I've have the following dataset. [{..... att1: a, hits: 2}, {..... att1: a, hits: 2}, {..... att1: a, hits: 3}, {..... att1: b, hits: 2}, {..... att1: b, hits: 2}, {..... att1: c, hits: 9}, ] I want to create a bar chart where x values would be…
bashhike
  • 129
  • 1
  • 10
0
votes
1 answer

Prevent a graph from recalculating its own percentages

I have three Row Charts and my code calculates and updates the percentages for each chart whenever a user first lands on the page or clicks a rectangle bar of a chart.  This is how it calculates the percentages posChart: % Position= unique…
0
votes
1 answer

Crossfilter reductio post cap

I am having trouble trying to use reductio's post().cap functionality. My dataset is like so. [{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:…
bashhike
  • 129
  • 1
  • 10
0
votes
2 answers

custom ordering in custom reduce functions in dc.js crossfilter.js

I have the following custom reduce functions function reduceAdd(p, v) { p.vol_t += v.oqt; p.prc_t += v.it; ++p.count; // p.average = d3.round((p.total / p.count), 2); return p; } function reduceRemove(p, v) { p.vol_t -= v.oqt; …
bashhike
  • 129
  • 1
  • 10
0
votes
1 answer

excluding "missing" values in reductio.avg()

I was hoping to use reductio to compute averages within my crossfilter groups. My dataset includes missing values (represented by null) that I'd like to exclude when calculating the average. However, I don't see a way to tell reductio to exclude…
Joey
  • 63
  • 1
  • 6
1 2
3