I'm working on an indented tree to show something similar to a
directory structure. I'm starting with a flat list of objects that
have different key/values where some I will be grouping by, some I
will be displaying as 'file meta data'
My primary issue is, I'm trying to figure out how to make the leafs
objects (instead of just a key) that way I can display more than just
the name (date created, owner, permissions, etc)
So, testdata is the flat list of objects. For now I am grouping by
year, then month, then displaying the name. Basically, if rollup
returns an object, the indented tree graph thinks the leaf is actually
another node, and each of its keys are the leaves. Is there a way to
have the leaves as an object?
var nest = pv.nest(testdata)
.key(function(d) { return d.year })
.key(function(d) { return monthnames[d.month] })
.key(function(d) { return
d.name })
.rollup(function(d) { return d.date });
I will probably have some other small questions (this is my first time
using the pv.nest function), but this seems to the the primary thing
holding me back right now.
Thank you!