Hey everyone,
First off, I'd like to thank everyone involved in building and maintaining d3, crossfilter, and dc.js for their incredible work that has enabled me to build such useful visualizations.
I've been working on building a visualization for a dataset that I collected recently about the usage of x86 instructions on the Ubuntu repository. You can check out the visualization in it's current form at
http://instrstudy.aakshintala.com
Now, onto the problem:
I tried to create a
jsFiddle so you can play with it but I can't seem to get that to work (I'm not a particularly proficient in JS or most Web tech).
I'm trying to add another category to the data. To group data by the popularity of the packages analyzed, I calculate the probability that the package will be installed given a random installation and then group packages by popularity%10. If you excuse the poor nomenclature I'm using, group9 = >90% probablity, group 8 = 80-90% etc. group10 differs from the pattern in that it's actually 1%-10% while group0 is 0%-1% (needed to make that explicit split because 0-10% is the largest category).
I added another rowChart to show the grouping. However, now filtering on the 'Type of Instruction' (leftmost rowchart) seems to be broken. If I select any of the less popular types (other than Data) the other charts don't filter correctly. If I click at least 2 Types it seems to filter correctly. I'm just baffled as to what is going wrong.
Another question:
The popularity chart is currently plotted by groups on the y-axis and reduceSum( d.count) - the number of times each of the instructions occurred - on the x-axis. I want to plot group vs number of packages in the group instead. I have this information in the json file under a separate top level attribute. Essentially I'd like to plot the graph using values from a different dataset, and then have the selection filter the original dataset. My intuition is that I could create another crossfilter for just the popularity groups and then when that changes manually apply the filter to all the dimensions of the other crossfilter object? Does this make sense?
Any help will be greatly appreciated.
Thanks,
Amogh