Open Morphexe opened 1 year ago
Hi, there are two properties attached to d
variable in the nodeContent
func which might be useful
depth
_height
chart.nodeContent(d=> `depth:${d.depth}, hierarchy height: ${d.height}`)
That d
is a d3 hierarchy object, so you can use any property or method attached to it
Full list here - https://d3js.org/d3-hierarchy/hierarchy#hierarchy
I am in need of adding a Depth Level label to the left of children that reports the depth level (or a custom information).
Either that or a way to be able to get how many levels are open, and the Y coordinate on the screen somewhat.
Thanks.