Hi All
I'm a little new to d3 but loving it already! I'm building a dynamic
pivot table / slice and dice visualisation that takes a raw table of
data and allows the user to selected a way to "slice" it and make nice
transitions between slices. You can see what I mean with my working
prototype in gist
https://gist.github.com/1797418, viewable with the
fantastic
bl.ocks.org:
http://bl.ocks.org/1797418.
My first question is, am I going about it the right way? Rather than
biding the raw data to the visualisation I am "packing" the raw data
in to positioning data first and then binding that to the
visualisation.
My second question is how should I handel the case where multiple
values sit in the same cell of the pivot table. At the moment they
just cover each other up. The two options I can see are, either
enhance my packing algorithm to offset them and size them within the
cell. Alternatively use the hierarchical approach I have seen with d3
Subselections. Organise the data into cells (with the first level of
selection) and then within the cells (with the second level of
selection).
I prefer the subselection approach but I've got a feeling it will make
my transitions between slices difficult because each slice is
essentially a different hierarchy of the original data and I'm not
sure if transitioning a data item from one subselection to another is
possible or easy.
Many thanks in advance!
Regards
Adam