dc.js

Access subkeys in multi-dimensional javascript object

冷暖自知 提交于 2020-01-15 04:19:26
问题 This is really a javascript question, as it involves iterating through the elements of a multidimensional js object and interpreting how to use the firefox console's representation of that object . Using d3.js/dc.js, I have two line charts. When the user clicks on a dot point in one chart, I need to identify the same point on its companion chart. Both charts use a similar X axis, a date series. The dates will correspond exactly, so the nth datapoint on chart 1 will correspond to the nth

Using dc.js with node.js

做~自己de王妃 提交于 2020-01-15 03:58:04
问题 Is it possible to use dc.js with node.js, and if so how? I would like to provide an example, but it's hard to see how to start on this, and no working examples seem to be available online. 回答1: In short, yes. I have implemented a full fledged app using nodejs and dc while the document store was mongo. The nodejs server is used for fetching the data from mongo db and serving it as api. Dc.js then uses this data for rendering charts. I will write a blog post about it and post it in a couple of

dc.js / d3.js - How to hide a bar chart x-axis category value if its bar value equals zero?

感情迁移 提交于 2020-01-15 02:32:37
问题 I know this question has been asked before, but I have not found an answer that works for me. I looked into https://github.com/dc-js/dc.js/wiki/FAQ#filter-the-data-before-its-charted and tried the remove_empty_bins function but nothing changed. I also tried the filter_bins function but I am getting the error message "f is not a function". I am working on a dashboard. I want the bar charts to update such that the x-axis categories are removed from the graph when they are zero and will reappear

dc.js / d3.js - How to hide a bar chart x-axis category value if its bar value equals zero?

天大地大妈咪最大 提交于 2020-01-15 02:30:21
问题 I know this question has been asked before, but I have not found an answer that works for me. I looked into https://github.com/dc-js/dc.js/wiki/FAQ#filter-the-data-before-its-charted and tried the remove_empty_bins function but nothing changed. I also tried the filter_bins function but I am getting the error message "f is not a function". I am working on a dashboard. I want the bar charts to update such that the x-axis categories are removed from the graph when they are zero and will reappear

.elasticX(true) doesn't work dc.js

a 夏天 提交于 2020-01-14 03:34:28
问题 I have a Composite Linechart The .elasticX(true) does not work :/ Could Someone help me var composite = dc.compositeChart("#durationline-chart"); composite.width(1500).height(350) .group(Durations) .brushOn(true) .yAxisLabel("Duration") .x(d3.scale.ordinal()) .xUnits(dc.units.ordinal) .margins({ top: 10, left: 50, right: 10, bottom: 50 }) .elasticY(true) .elasticX(true) .renderlet(function(chart) { chart.selectAll("g.x text") .attr('transform', "rotate(+20)"); }) .compose([ dc.lineChart

DC and crossfilter with large datasets

眉间皱痕 提交于 2020-01-11 19:57:35
问题 I have been working on dc and crossfilter js and I currently have a large dataset with 550,000 rows and size 60mb csv and am facing a lot of issues with it like browser crashes etc So , I'm trying to understand how dc and crossfilter deals with large datasets. http://dc-js.github.io/dc.js/ The example on their main site runs very smoothly and after seeing timelines->memory (in console) it goes to a max of 34 mb and slowly reduces with time My project is taking up memory in the range of 300

dc.js brush not aligned with cursor

心不动则不痛 提交于 2020-01-07 03:08:09
问题 I have a number of dc bar charts that get added to a page. For some reason, when I brush a selection on the chart, the selected area starts a good bit to the left of the cursor. For example in this case the cursor was around 12 on the x axis, but the brush selection started around 4. In most cases the cursor starts before the x axis with no data selected. This is pretty much the code used for the chart. I can't really see anything that would be causing this issue. I'm working with version dc

DC.JS get last month value as filter

旧城冷巷雨未停 提交于 2020-01-07 02:51:25
问题 I've got a question concerning measures that can't be aggregated over time, for example stock value. In the example below, I've created a time line for my total stock value, which works well. Additionally I would like to see the most current stock level per company. This should be last month of my time selection. I can't get this to work as the stock value is being summed over the entire period, where I would like to see the stock value of the last period (month). Whenever I change my

DC.JS get last month value as filter

↘锁芯ラ 提交于 2020-01-07 02:51:10
问题 I've got a question concerning measures that can't be aggregated over time, for example stock value. In the example below, I've created a time line for my total stock value, which works well. Additionally I would like to see the most current stock level per company. This should be last month of my time selection. I can't get this to work as the stock value is being summed over the entire period, where I would like to see the stock value of the last period (month). Whenever I change my

Dynamic div creation for dc.js and implementing crossfiltered dashboard

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-05 07:48:13
问题 I am creating a generic dashboard where you upload any data -- with any number of columns, one should be able to visualize the bar charts dynamically using dc.js. Till now, I had been creating individual div element for each column (when file column types and count is known). What should I do to make the div creation automatic as per the number of columns of csv file uploaded sothat the charts are created accordingly with crossfilter enabled ? Note: Generic means the file can have any number