Skip to content

Commit 66ffea8

Browse files
authored
documentation Plot.initializer (#915)
1 parent 1aa3e24 commit 66ffea8

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
@@ -2266,6 +2266,10 @@ You can specify a custom initializer by specifying a function as the mark **init
22662266
22672267
If an initializer desires a channel that is not supported by the downstream mark, additional channels can be declared using the mark **channels** option.
22682268
2269+
#### Plot.initializer(*options*, *initializer*)
2270+
2271+
This helper composes the *initializer* function with any other transforms present in the *options*, and returns a new *options* object.
2272+
22692273
## Curves
22702274
22712275
A curve defines how to turn a discrete representation of a line as a sequence of points [[*x₀*, *y₀*], [*x₁*, *y₁*], [*x₂*, *y₂*], …] into a continuous path; *i.e.*, how to interpolate between points. Curves are used by the [line](#line), [area](#area), and [link](#link) mark, and are implemented by [d3-shape](https://github.com/d3/d3-shape/blob/main/README.md#curves).

0 commit comments

Comments
 (0)