Skip to content

Commit e325fa2

Browse files
committed
Update README
1 parent ad306f0 commit e325fa2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,12 @@ More commonly this shorthand is written as a single expression:
734734
Plot.barY(alphabet, {x: "letter", y: "frequency"}).plot()
735735
```
736736

737+
This is equivalent to:
738+
739+
```js
740+
Plot.plot({marks: [Plot.barY(alphabet, {x: "letter", y: "frequency"})]})
741+
```
742+
737743
If needed, you can pass additional *options* to *mark*.plot, which is equivalent to passing *options* to Plot.plot. (If the *marks* option is used, additional marks are concatenated with the shorthand *mark*.)
738744

739745
```js

0 commit comments

Comments
 (0)