Skip to content

Commit 5fa87f4

Browse files
committed
Update README
1 parent 81f17ea commit 5fa87f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ Renders a new plot given the specified *options* and returns the corresponding S
6666

6767
### Mark options
6868

69-
The **marks** option specifies an array of [marks](#marks) to render. Each mark has its own data and options; see the respective mark type (*e.g.*, [bar](#bar) or [dot](#dot)) for which mark options are supported. Each mark may be a nested array of marks, allowing composition. Marks may also be a function which returns an SVG element, if you wish to insert some arbitrary content into your plot. And marks may be null or undefined, which produce no output; this is useful for showing marks conditionally (*e.g.*, when a box is checked). Marks are drawn in *z*-order, last on top. For example, here bars for the dataset *alphabet* are drawn on top of a single rule at *y* = 0.
69+
The **marks** option specifies an array of [marks](#marks) to render. Each mark has its own data and options; see the respective mark type (*e.g.*, [bar](#bar) or [dot](#dot)) for which mark options are supported. Each mark may be a nested array of marks, allowing composition. Marks may also be a function which returns an SVG element, if you wish to insert some arbitrary content into your plot. And marks may be null or undefined, which produce no output; this is useful for showing marks conditionally (*e.g.*, when a box is checked). Marks are drawn in *z*-order, last on top. For example, here a single rule at *y* = 0 is drawn on top of bars for the [*alphabet* dataset](./test/data/alphabet.csv).
7070

7171
```js
7272
Plot.plot({
7373
marks: [
74-
Plot.ruleY([0]),
75-
Plot.barY(alphabet, {x: "letter", y: "frequency"})
74+
Plot.barY(alphabet, {x: "letter", y: "frequency"}),
75+
Plot.ruleY([0])
7676
]
7777
})
7878
```

0 commit comments

Comments
 (0)