Skip to content

Commit a7846e2

Browse files
committed
Update README
1 parent 9a83550 commit a7846e2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -720,6 +720,8 @@ The following channels are required:
720720
* **x2** - the ending horizontal position; bound to the *x* scale
721721
* **y2** - the ending vertical position; bound to the *y* scale
722722

723+
For vertical or horizontal arrows, the **x** option can be specified as shorthand for **x1** and **x2**, and the **y** option can be specified as shorthand for **y1** and **y2**, respectively.
724+
723725
The arrow mark supports the [standard mark options](#marks). The **stroke** defaults to currentColor. The **fill** defaults to none. The **strokeWidth** and **strokeMiterlimit** default to one. The following additional options are supported:
724726

725727
* **bend** - the bend angle, in degrees; defaults to zero
@@ -978,6 +980,8 @@ The following channels are required:
978980
* **x2** - the ending horizontal position; bound to the *x* scale
979981
* **y2** - the ending vertical position; bound to the *y* scale
980982

983+
For vertical or horizontal links, the **x** option can be specified as shorthand for **x1** and **x2**, and the **y** option can be specified as shorthand for **y1** and **y2**, respectively.
984+
981985
The link mark supports the [standard mark options](#marks). The **stroke** defaults to currentColor. The **fill** defaults to none. The **strokeWidth** and **strokeMiterlimit** default to one.
982986

983987
The link mark supports [curve options](#curves) to control interpolation between points. Since a link always has two points by definition, only the following curves (or a custom curve) are recommended: *linear*, *step*, *step-after*, *step-before*, *bump-x*, or *bump-y*. Note that the *linear* curve is incapable of showing a fill since a straight line has zero area. For a curved link, you can use a bent [arrow](#arrow) (with no arrowhead, if desired).

0 commit comments

Comments
 (0)