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

Filtering null values from dimensions for a DC.JS series chart

I'm trying to create multiple times series charts using DC.JS from one dataset with multiple dimensions The problem I'm having is that each dimension has null values in them…
zilnhoj
  • 16
  • 2
0
votes
1 answer

Uncaught TypeError: dc.leafletMarkerChart is not a function

I am trying to add marker cluster on my dc.js charts and get stuck with this error.individual code is running but on merging it with the pie chart ,bar chart and the map , the marker are not displaying.
0
votes
0 answers

Dc.js Calculation error

I have a composite chart in dc.js and trying to add a line calculated against existing groups: Basically I'm trying to get the diff of Actuals vs Forecast (rDiffPct) as a percentage as follows: (Actuals - Forecast) / Forecast but getting either Nan…
stonk
  • 305
  • 2
  • 3
  • 15
0
votes
0 answers

jQuery click and call function not working

I use d3.js and dc.leaflet.js to draw cluster map and markers map. ".cluster(true)" or ".cluster(false)" can change the map style. var MKmarker = dc_leaflet.markerChart("#map") function drawmap(MapTypeBoolean) { MKmarker …
Elsie
  • 1
  • 1
0
votes
0 answers

D3 data table vs DC Data table, which one better with combination of jQuery data table?

Which one(D3/DC) is better to use along with Jquery Data table in terms of performance and features. For example if we are combining it with DC we are able link with other charts like line, pie and etc. But here the limit of filters are restricted…
kumarc
  • 85
  • 1
  • 1
  • 8
0
votes
0 answers

dc.js library not working as tutorials

I am trying to use the dc.js library for charts. However, what I found was my charts were not loading properly. If I write my code as following, it would not show the charts or error messages. But if I include my script (except the first line of the…
Siyu
  • 11
  • 1
0
votes
0 answers

Pull specific keys with values to use in bar chart

My data looks like this var data = [ {'date':'1/1/17', 'cars':2.0, 'trucks':3.0, 'suvs':4.0, 'bikes':0,'skates':0} {'date':'2/1/17', 'cars':4.0, 'trucks':7.0, 'suvs':4.0, 'bikes':1.0,'skates':0.0} {'date':'3/1/17', 'cars':0.0, 'trucks':3.0,…
user3007270
  • 406
  • 4
  • 15
0
votes
0 answers

Bar Charts with Month segments on x-axs using d3

Struggling with creating a bar chart where the x-axis is a date. The format of my date data is "2017-01-31","2017-02-28" etc.. When I plot my data I get Jan 08, Jan 15, Jan 22.. on my x axis var countbarChart=…
user3007270
  • 406
  • 4
  • 15
0
votes
1 answer

filterAll(); not working with leaflet map

I'm trying to reset a leaflet map (to its original view) after clicking on a marker using:
Location reset
Where mapLocation is my leaflet map variable. I'm…
mutanthumb
  • 161
  • 1
  • 13
0
votes
1 answer

crossfilter: obtain the count of values falling into the product of two columns

I have a data set like {"parent":"/home","inside":"/files","filename":"type.jar", "extension":"jar","type":"modified","archive"} Likewise many there are many rows in the json array. I am using crossfilter to read the data and plot graphs and…
karthik95
  • 31
  • 1
  • 7
0
votes
0 answers

Unclear about how dc.js events are working in this example

I am trying to create something similar to this: http://photogrammar.yale.edu/labs/crossfilter/california/ But I am unclear about how clicking on a county is updating the dataTablesm. My version is using a leaflet map with circles created in d3 for…
mutanthumb
  • 161
  • 1
  • 13
0
votes
0 answers

Multi-Level Nesting using dc.js

How can you use multi-level nesting, like this example in d3, using dc.js? var expensesTotalByDay = d3.nest() .key(function(d) { return d.name; }) .key(function(d) { return d.date; }) .rollup(function(v) { return d3.sum(v, function(d) { return…
Santosh Sewlal
  • 141
  • 1
  • 1
  • 6
0
votes
1 answer

dc.js Composite Graph - Plot New Line for Each Person

Good Evening Everyone, I'm trying to take the data from a database full of hour reports (name, timestamp, hours worked, etc.) and create a plot using dc.js to visualize the data. I would like the timestamp to be on the x-axis, the sum of hours for…
engnfrc
  • 41
  • 6
0
votes
0 answers

Using Custom reduce function with Fake Groups

I have line chart where I need to show frequency of order executions over the course of a day. These orders are grouped by time interval, for example every hour, using custom reduce functions. There could be an hour interval when there were no order…
0
votes
0 answers

Date filter not working in DC JS Charts and Data Tables

I am working on build Charts and Data Tables using DC JS . I have added Date filters separately above code so that I can select Date Ranges. However when I select Date ranges . Everything get's removed from Data Tables and sometimes it only shows…
Riyaj
  • 27
  • 5
1 2 3
99
100