Closed zsunberg closed 7 years ago
@mykelk had the idea of specifying the attributes of each node as a function, i.e.
f(i) = isodd(i) ? "fill:blue" : "fill:red" D3Tree(children, style=f)
I don't think this is necessary right now because it's easy enough to do
D3Tree(children, style=[f(i) for i in 1:length(children)])
but we could add it if people want it. I just want to maintain as little code as possible.
Yeah, that's fine.
@mykelk had the idea of specifying the attributes of each node as a function, i.e.
I don't think this is necessary right now because it's easy enough to do
but we could add it if people want it. I just want to maintain as little code as possible.