Questions tagged [dc.js]

dc.js is a JavaScript charting library with native Crossfilter support that fosters highly efficient exploration of large multi-dimensional datasets (inspired by Crossfilter's demo).

dc.js is a JavaScript charting library with native Crossfilter support that fosters highly efficient exploration of large multi-dimensional datasets (inspired by Crossfilter's demo). It leverages D3.js to render charts in the CSS-friendly SVG format, and it works best with flattened data. Charts rendered using dc.js are naturally data-driven and reactive, and therefore provide instant feedback to users' interactions.


Useful links


Related tags

1845 questions
0
votes
0 answers

Multidimension Bubble Chart using DC.js

I am trying to create a bubble chart using DC.js The sample data I have is: State_Name Area Cities Villages Population A 200 60 1050 10000 B 300 80 1100 15678 C 500 …
0
votes
1 answer

dc.js and crossfilter custom valueAccesor

I am attempting to chart average counts by hour and the custom reduce function is almost working here https://jsfiddle.net/dolomite/6eeahs6z/ There is an issue in that some hours have no activity, e.g. there may be three Sundays in the data but only…
Dolomite
  • 27
  • 5
0
votes
1 answer

dc.js and crossfilter second level aggregation to average count per hour

I am trying to slightly extend the problem described in this question: dc.js and crossfilter reduce average counts per day of week I would like to chart average counts per hour of the day. I have followed the solution above, counting the values by…
Dolomite
  • 27
  • 5
0
votes
0 answers

how to display DC. Js chart / numberdisplay?

I want to create a numberdisplay chart for my dashboard.The problem is : I can't display the value. It displays 'NAN' var byWomen = cf.dimension(function (d) { return d.Women; }); var byWomenGroup = byWomen.groupAll().reduceSum(function (d) { return…
BARIK FATI
  • 29
  • 9
0
votes
0 answers

Truncating dates in dc.js

Say I'd like to sum up the number of sales I've made per month, and I have the datetime which sale was made. I also have sales from different years. Is there a convinient way to "truncate" dates so datetimes in the same month and year are equal in…
Nilo Araujo
  • 725
  • 6
  • 15
0
votes
1 answer

Drill down in DC.js

I am building a dashboard that needs a drill-down pie chart. Does DC.js support drilling down natively? I have implemented drill down in Highcharts quite easily in the past, but we need support for cross filtering and dimensions, so I would like to…
Sriram
  • 11
  • 1
0
votes
1 answer

dots in lineChart dont hide DC.js d3-tip

I'm working with a DC.js lineChart, I added a tooltip with d3-tip, but when I activate it, the points in the lineChart do not disappear, as in the image. What can I be doing wrong with the d3-tip?
ragde
  • 35
  • 3
0
votes
0 answers

dc.js charts, how to get the intersection of multiple filters

I am wondering if anyone can help me with getting the intersection of multiple filters. For example: if I have following: var ndx = crossfilter([ {id: 1, arrayVals: [1, 2]}, {id: 2, arrayVals: [2, 3]}, {id: 3, arrayVals: [1, 2,…
Anney Che
  • 97
  • 3
0
votes
0 answers

How to group one dimension based on another dimension grouping in crossfilter?

In my problem, I have data about customers and seller: customer, seller, amount cus1, sel1, 78 cus2, sel1, 34 cus3, sel2, 25 cus2, sel1, 13 cus2, sel1, 11 cus3, sel2, 18 cus4, sel3, 50 ...I would like to know how many customers each seller have.…
Roger A. Leite
  • 394
  • 2
  • 18
0
votes
0 answers

Invalid Array Width without declaring new dimension

My web app is generating an "Invalid Array Width" error at line 462 of Crossfilter.js v1.3.12. This error seems to tell me I have >32 dimensions. The puzzle is that I am not knowingly declaring a new dimension when the error occurs. I have 10 slider…
emma
  • 343
  • 3
  • 16
0
votes
1 answer

Show selected chart in a resizable modal

I have several dc.js charts in a dashboard and would like to allow the user to view a selected chart is a modal window that can be resized. Does anyone have suggestions or examples?
Chris Wolcott
  • 302
  • 1
  • 3
  • 9
0
votes
1 answer

DC.js barChart not displaying with date axis

I'm trying to display a bar chart showing with a count of dates but the bars will not draw and I'm getting a NaN error in the console. Please can someone tell me where I am going wrong? var…
Carolyne
  • 13
  • 2
0
votes
1 answer

dc.js Stacked Bar Chart having only one column and with elastic X Axis is not rendered properly

I have created a stacked bar chart using dc.js and crossfilter. I am using a time dimnesion along the x-axis and has also made it elastic. But it seems like the chart is not rendering properly when there is just one column (either because of data or…
Kush Kashyap
  • 116
  • 10
0
votes
0 answers

Is there a way to prevent a dimension from being filtered by another dimension in dc.js?

Let's say I have a dataset with three dimensions: X, A, and B. I want to prevent X from being filtered by brush events in A or B. However, I still want to filter A or B by any dimension, including X. That is, X -> A X -> B A <-> B Is there a way to…
Peter Ho
  • 1
  • 1
0
votes
0 answers

dc.js Is it possible to have a table of over 32 columns?

Creating a table of over 32 columns is causing an error, I assume this is because of the dimension limit. I do not need all columns to interact with crossfilter, some are purely information. Is it possible to create a table with upto 32 interactive…
bentwonk
  • 193
  • 2
  • 10