You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The tree mark could do this automatically by generating separate text marks for internal vs. leaf nodes with appropriate filters. I don’t think we should make dx and textAnchor into channels; I appreciate that there is desire for it but making everything a channel makes it harder to implement marks and is not practical. It is better to focus our efforts on channels that are intended to encode data rather than allow bespoke formatting.
Would this be a new option (say, balancedLabels), or are you suggesting that we modify Plot.tree to do it by default? In that case would we just use dx and -dx?
In https://observablehq.com/@observablehq/plot-tree-tidy if you want to vary the orientation of node labels (so that leaves point to the right and parent nodes to the left, as in https://observablehq.com/@d3/tree), you can do:
This could be easier if dx and textAnchor were channels (#1528, #909), or maybe we need a specific option to Plot.tree.
The text was updated successfully, but these errors were encountered: