Skip to content

Commit bddb4d7

Browse files
committed
Update README
1 parent 5fa87f4 commit bddb4d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ 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 a single rule at *y* = 0 is drawn on top of bars for the [*alphabet* dataset](./test/data/alphabet.csv).
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 blue bars for the [*alphabet* dataset](./test/data/alphabet.csv).
7070

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

0 commit comments

Comments
 (0)