Skip to content

Commit 023ca17

Browse files
Filmbostock
authored andcommitted
lighter copy
1 parent 07693f4 commit 023ca17

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/marks/tree.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function indent() {
3232

3333
# Tree mark
3434

35-
The **tree mark** produces tree diagrams using the [tree transform](../transforms/tree.md). It is a [composite mark](../features/marks.md#marks-marks), consisting of a [link](./link.md) to render links from parent to child, an optional [dot](./dot.md) for nodes, and a [text](./text.md) for node labels—or two if the **textBalanced** option is truthy, drawing leaf node labels to the right and non-leaf node labels to the left of the node. The link mark uses the [treeLink transform](../transforms/tree.md#treelink-options), while the dot and text marks use the [treeNode transform](../transforms/tree.md#treenode-options).
35+
The **tree mark** produces tree diagrams using the [tree transform](../transforms/tree.md). It is a [composite mark](../features/marks.md#marks-marks), consisting of a [link](./link.md) to render links from parent to child, an optional [dot](./dot.md) for nodes, and one or two [text](./text.md) for node labels. The link mark uses the [treeLink transform](../transforms/tree.md#treelink-options), while the dot and text marks use the [treeNode transform](../transforms/tree.md#treenode-options).
3636

3737
For example, here is a little family tree of Greek gods.
3838

@@ -75,7 +75,7 @@ Plot.plot({
7575
```
7676
:::
7777

78-
The **treeLayout** option specifies the layout algorithm. The tree mark uses the Reingold–Tilford “tidy” tree algorithm, [d3.tree](https://github.com/d3/d3-hierarchy/blob/main/README.md#tree), by default. The [cluster](#cluster-data-options) convenience method sets **treeLayout** to [d3.cluster](https://github.com/d3/d3-hierarchy/blob/main/README.md#cluster), aligning the leaf nodes. Both default **textBalanced** to true.
78+
The **treeLayout** option specifies the layout algorithm. The tree mark uses the Reingold–Tilford “tidy” tree algorithm, [d3.tree](https://github.com/d3/d3-hierarchy/blob/main/README.md#tree), by default. The [cluster](#cluster-data-options) convenience method sets **treeLayout** to [d3.cluster](https://github.com/d3/d3-hierarchy/blob/main/README.md#cluster), aligning the leaf nodes. Both default the **textBalanced** option to true, drawing non-leaf node labels to the left of the node.
7979

8080
:::plot https://observablehq.com/@observablehq/plot-cluster-flare
8181
```js
@@ -151,7 +151,7 @@ The following options are supported:
151151
* **title** - the text and dot title; defaults to *node:path*
152152
* **text** - the text label; defaults to *node:name*
153153
* **textStroke** - the text stroke; defaults to *white*
154-
* **textBalanced** - the node label orientation
154+
* **textBalanced** - the orientation of non-leaf labels
155155
* **dx** - the text horizontal offset; defaults to 6 if left-anchored, or -6 if right-anchored
156156
* **dy** - the text vertical offset; defaults to 0
157157

0 commit comments

Comments
 (0)