crossfilter

Dc-sunburst, dc-Menuslect, dc-Non interactive graph

▼魔方 西西 提交于 2021-02-10 05:51:50
问题 I'm new on dc.js and I have some questions about flexibility of dc. First, I have looked for answers but haven't yet found any of them. 1) I'm using dc.sunburst chart. I was wondering if it was possible to create Zoomable sunburst as it is actually the case with d3.js. If yes, can you provide a piece of code please..? 2) I'm using crossfilter for interacting several graphs together. However I would like that one of them would not be possible to filter with. I mean that it updates with his

Dc-sunburst, dc-Menuslect, dc-Non interactive graph

倖福魔咒の 提交于 2021-02-10 05:51:22
问题 I'm new on dc.js and I have some questions about flexibility of dc. First, I have looked for answers but haven't yet found any of them. 1) I'm using dc.sunburst chart. I was wondering if it was possible to create Zoomable sunburst as it is actually the case with d3.js. If yes, can you provide a piece of code please..? 2) I'm using crossfilter for interacting several graphs together. However I would like that one of them would not be possible to filter with. I mean that it updates with his

dc.js Flatten Data vs Array of Objects and filtering

喜你入骨 提交于 2021-02-08 11:17:17
问题 I would like to understand if the following is possible. If have two jsFiddle examples with the same dataset. One contains an array of objects while the other is flatten. I have also added some records that are not fully scoped. Can the filter on the scatter plot work correctly for the Array of Objects dataset? Data - Flatten : jsFiddle Example var data = [ {"_uid": 1, "business": 'Resort', "state": {name: 'Virginia', startups: 15}}, {"_uid": 1, "business": 'Resort', "state": {name: 'Maryland

dc.js Flatten Data vs Array of Objects and filtering

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-08 11:17:10
问题 I would like to understand if the following is possible. If have two jsFiddle examples with the same dataset. One contains an array of objects while the other is flatten. I have also added some records that are not fully scoped. Can the filter on the scatter plot work correctly for the Array of Objects dataset? Data - Flatten : jsFiddle Example var data = [ {"_uid": 1, "business": 'Resort', "state": {name: 'Virginia', startups: 15}}, {"_uid": 1, "business": 'Resort', "state": {name: 'Maryland

Display original (conditional) brushed unbrushed crossfilter bars with dc.js with different colors

梦想的初衷 提交于 2021-02-07 09:34:24
问题 Say we have the following crossfilter / dc.js app: While this is nice, the user loses "reference" the population when brushing. I would like for charts x , y , z , and a to keep the "underlying" bars when other charts are brushed. Perhaps in a different color like so: I believe this may require updating the dc.renderAll() function, but I am not sure even how to start. Here is all the code to reproduce this app with the .csv data hosted as a gist. <!DOCTYPE html> <html lang="en"> <head> <title

dc.js heatmap colour range not getting updated after filter applied

牧云@^-^@ 提交于 2021-01-28 14:20:17
问题 I'm using dc.js to create a dashboard, the dataset contains 3 types of reading from 1 year in a 24 hour basis. (in the example fiddle, i only use 15 days just for demonstration purpose) Here is the link to a JSFiddle to better illustrate my problem http://jsfiddle.net/table315/hLzLzhss/ I've used a row chart to show the total of each reading, and a heatmap to show the total reading of each day at each time. When 1 type of reading from the row chart has selected, the heatmap doesn't seems to

dc.js heatmap colour range not getting updated after filter applied

十年热恋 提交于 2021-01-28 14:20:17
问题 I'm using dc.js to create a dashboard, the dataset contains 3 types of reading from 1 year in a 24 hour basis. (in the example fiddle, i only use 15 days just for demonstration purpose) Here is the link to a JSFiddle to better illustrate my problem http://jsfiddle.net/table315/hLzLzhss/ I've used a row chart to show the total of each reading, and a heatmap to show the total reading of each day at each time. When 1 type of reading from the row chart has selected, the heatmap doesn't seems to

How to add row in datatable - DC.js

那年仲夏 提交于 2021-01-28 11:33:56
问题 I have a json file that loads sales data for salespeople based on the current year and the previous year. I created a table in which I show the total sales for each year for each salesperson and, in the last row, I need to load the total for all salespeople added up. As shown in the image below: I am using dc.dataTable to create my table. Can you tell me if there is any way in DC.js to create a row in my table to put the total sales? Here is my code, thank you in advance. var vendedorTable =

Crossfilter - Loading a JSON file from localStorage

旧时模样 提交于 2021-01-28 10:40:23
问题 I'm fairly new to Javascript and I'm trying to create a simple bar chart with d3.js using some data saved in the localStorage. The data in the localStorage is acquired by the following function: function logScore() { var name = prompt("Please enter your name to add to the high scores list:"); var score = game.count; var gameDate = today; var scoreObj = { name: name, score: score, date: gameDate }; scoresArray.push(scoreObj); window.localStorage.setItem('scoresRecord', JSON.stringify

Uniformly-spaced histogram bins with dc.js?

不问归期 提交于 2021-01-27 06:38:25
问题 Mike Bostock uses the following snippet to generate uniformly-spaced bins for a histogram: var data = d3.layout.histogram() .bins(x.ticks(20)) (values); source Is there any way to adapt this to a project that uses dc.js and crossfilter.js? Essentially, I want to dynamically generate the bins and then use the chart to filter on a particular attribute. Total newbie to this. Any guidance would be appreciated! 回答1: dc.js supports histograms via crossfilter. Use a group for your bar chart that