Skip to content

Commit 8b260d2

Browse files
committed
Update README.
1 parent 7a65535 commit 8b260d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ svg.selectAll("circle")
529529
.attr("stroke", "black");
530530
```
531531
532-
The *enter* function may be specified as a string shorthand, as above, which is equivalent to [*selection*.append](#selection_append) with the given element name. Likewise, an optional *update* and *exit* function may be specified, which default to the identity function and calling [*selection*.remove](#selection_remove), respectively. Thus, the shorthand above is equivalent to:
532+
The *enter* function may be specified as a string shorthand, as above, which is equivalent to [*selection*.append](#selection_append) with the given element name. Likewise, optional *update* and *exit* functions may be specified, which default to the identity function and calling [*selection*.remove](#selection_remove), respectively. The shorthand above is thus equivalent to:
533533
534534
```js
535535
svg.selectAll("circle")
@@ -555,7 +555,7 @@ svg.selectAll("circle")
555555
.attr("stroke", "black");
556556
```
557557

558-
The selections returned by the enter and update functions are merged and then returned by *selection*.join.
558+
The selections returned by the *enter* and *update* functions are merged and then returned by *selection*.join.
559559

560560
You also animate enter, update and exit by creating transitions inside the *enter*, *update* and *exit* functions. To avoid breaking the method chain, use *selection*.call to create transitions, or return an undefined enter or update selection to prevent merging: the return value of the *enter* and *update* functions specifies the two selections to merge and return by *selection*.join.
561561

0 commit comments

Comments
 (0)