I'm using dc.js to render a nice bubble chart of a dataset. Underlying dc.js is crossfilter. I'd like to smoothly refresh my chart with new data from the server. This issue on Github makes it clear that it is possible to do this by: deleting all the data from the crossfilter adding in the new data calling dc.redrawAll() . I've got this working but in order to delete all th
我使用dc.js来渲染数据集的一个漂亮的气泡图。 底层的dc.js是交叉过滤器。 我想用来自服务器的新数据平滑地刷新我的图表。 Github上的这个问题清楚地表明,通过以下方式可以做到这一点: 删除交叉过滤器中的所有数据 添加新的数据 调用dc.redrawAll() 。 我有这个工作,但为了删除所有的数据,你首先必须清除所有的过滤器(因为crossfilter.remove只会删除匹配当前过滤器的记录)。 我想'记住'我的数据之
I am trying to understand how to use crossfilter with dc.js. I have the following data and I would just like to start by populating a numberDisplay with the total number of objects within the data. Then secondly populating how many records there are for bills losses. var data = [ { "team": "bills", "location": "home", "outcome": "loss" }, { "team": "dolphins", "locati
我想了解如何在dc.js中使用crossfilter。 我有以下数据,我只想通过用数据内的对象总数填充numberDisplay开始。 然后再填充有多少记录用于票据损失。 var data = [ { "team": "bills", "location": "home", "outcome": "loss" }, { "team": "dolphins", "location": "away", "outcome": "loss" }, { "team": "jets", "location": "home", "outcome": "loss" }, { "team
I am trying to make an interactive data visualization using dc.js. My data is basically two series of values, distinguished by an id attribute specified for each row. Here's the example how I generate it: var data = []; var n = 10000.; for (var i = 0; i < n; i++) { data.push({id: 0, "i": i, x: Math.random()}); data.push({id: 1, "i": i, x: (Math.random()+i/n)}); } Then I do put
我正在尝试使用dc.js进行交互式数据可视化。 我的数据基本上是两个值系列,通过为每行指定的id属性进行区分。 以下是我如何生成它的示例: var data = []; var n = 10000.; for (var i = 0; i < n; i++) { data.push({id: 0, "i": i, x: Math.random()}); data.push({id: 1, "i": i, x: (Math.random()+i/n)}); } 然后,我将这个数据集放入一个交叉过滤器对象中,并创建两个维度和两个组。 每一个显示id装箱值
I'm using crossfilter.js and dc.js to create a dashboard and have one chart which has been stumping me! Hopefully someone can help! See data structure below: Sample Data Structure I'm trying to make chart which plots quarters like below: Desired Chart (Generated in Excel) I'm trying to avoid normalizing/flattening the data set for Quarters because I would have a x4 times the
我正在使用crossfilter.js和dc.js创建一个仪表板,并且有一个图表一直在困扰着我! 希望有人能帮助! 查看下面的数据结构: 示例数据结构 我正在试图制作如下图所示的图表: 所需图表(在Excel中生成) 我试图避免使Quarters的数据集标准化/扁平化,因为我将有x4倍的记录数量(或更多,取决于我们希望展示多少年),并且有很多额外的描述字段用作维度进行其他分析。 任何想法或建议将不胜感激! 先谢谢你!
I have some data like this [ {type:"a", series:[0.1, 0.2, 0.2, 0.1, -0.1]}, {type:"b", series:[0.3, 0.4, 0.5, 0.6, 0.7]}, ] There is a dimension for type, then I'm doing a group and averaging out each series per type. Is there a nice way to plot the averaged series per type? Obviously I want it to update with any new filters. I tried flattening out my data as [ {type:"a",
我有这样的一些数据 [ {type:"a", series:[0.1, 0.2, 0.2, 0.1, -0.1]}, {type:"b", series:[0.3, 0.4, 0.5, 0.6, 0.7]}, ] 有一个维度的类型,然后我正在做一个组,并平均每个类型的每个系列。 有没有一种很好的方式来绘制每种类型的平均系列? 很显然,我希望它可以使用任何新的过滤器进行更新。 我尝试将数据展平 [ {type:"a", index:0, value:0.1}, {type:"a", index:1, value:0.2}, ... ] 并
I've looked at dc.js's documentation carefully, and noticed some open issues surrounding multi-series line charts. I have data that looks like this: var data = [ //['time', 'text', 'temperature', 'count'], ['1379952000', 'field_1', 91, 56], ['1379952000', 'field_2', 50, 20], ['1379952000', 'field_3', 88, 24], ['1379952000', 'field_4', 50, 37], ['1379953200', 'field_1', 97, 58],
我仔细查看了dc.js的文档,发现了围绕多系列折线图的一些未解决的问题。 我有这样的数据: var data = [ //['time', 'text', 'temperature', 'count'], ['1379952000', 'field_1', 91, 56], ['1379952000', 'field_2', 50, 20], ['1379952000', 'field_3', 88, 24], ['1379952000', 'field_4', 50, 37], ['1379953200', 'field_1', 97, 58], ['1379953200', 'field_2', 84, 86], ['1379953200', 'field_3', 85, 62],
I'm pretty new to crossfilter and dc, currently trying to build interactive dashboard with them. The data I have would easily go up to around 200MB and my browser would just crash when I do the crossfilter on the client side, so after some search online I decided to run crossfilter on the server and dc for charting on client side, and I'm following the work here dc.js-server-side-crossfi
我对crossfilter和dc非常陌生,目前正试图与他们建立交互式仪表板。 当我在客户端进行交叉过滤时,我拥有的数据很容易上升到大约200MB,并且我的浏览器会崩溃,所以在线搜索后,我决定在服务器上运行crossfilter,在客户端上运行dc, 'm继续这里的工作dc.js-server-side-crossfilter但是,直流图表并不互相影响。 所以根据我所了解的基本组件,服务器端app.js处理从客户端app.js发送的Ajax调用,并执行所需的过滤,然后将
I've just started getting to grips with Crossfilter (used with D3 and DC) and I'm running in to a problem trying to group data and output a chart based on that grouping. I have some data which records a date, a start and end time, and an activity. What I'm trying to acheive is a pie chart which will show the proportion of time spent on each activity, and a stacked bar chart which sh
我刚刚开始熟悉Crossfilter(与D3和DC一起使用),我遇到了尝试对数据进行分组并输出基于该分组的图表的问题。 我有一些记录日期,开始和结束时间以及活动的数据。 我试图达到的是一个饼图,它将显示花费在每项活动上的时间的比例,以及一个堆叠的条形图,该条形图应该按照每天活动的时间组成的堆栈来细分活动,给定的一天。 这里是我到目前为止的代码(带有一个小样本数据集): var data = [ { "starttime": 1470
Here is an example of my visualization : Now I have been facing issues with dc & crossfilter with large datasets Discussion : https://groups.google.com/forum/#!topic/dc-js-user-group/fkRoFHuqg4k DC and crossfilter with large datasets So, now I have decided to use aggregation meaning, I will show only daily data which will be of smaller size and can be shown easily on the tab as seen in
这是我的可视化的一个例子: 现在,我一直面临与大型数据集的dc&crossfilter问题讨论:https://groups.google.com/forum/#!topic/dc-js-user-group/fkRoFHuqg4k DC和大数据集交叉过滤 所以,现在我决定使用聚合的含义,我只会显示日常数据,这些数据的尺寸会更小,并且可以在照片中轻松显示,并且所有条形图都是动态连接的。 现在,当用户只选择一个日期时,我希望它显示该特定日期的每小时数据。 而且,这些时间可以
I built a crossfilter with several dimensions and groups to display the data visually using dc.js. The data visualized is bike trip data, and each trip will be loaded in. Right now, there's over 750,000 pieces of data. The JSON file I'm using is 70 mb large, and will only need to grow as I receive more data in the months to come. So my question is, how can I make the data more lean so
我使用dc.js构建了具有多个维度和组的可视化对象以显示数据。 可视化的数据是自行车行程数据,每次行程都将被载入。目前,有超过750,000条数据。 我使用的JSON文件大小为70 MB,只需随着我在未来几个月内收到更多数据而增加。 所以我的问题是,我怎样才能使数据更加精简,因此可以很好地扩展? 现在,我的互联网连接需要大约15秒的时间才能加载,但是我担心,一旦数据太多,这将花费太长时间。 另外,我试过(不成功)在数