Skip to content

Commit ad306f0

Browse files
committed
Update README
1 parent 58d0702 commit ad306f0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -724,10 +724,8 @@ Insets are specified in pixels. Corner radii are specified in either pixels or p
724724
Given a *mark*, such as the result of calling [Plot.barY](#plotbarydata-options), you can call *mark*.plot to render a plot. This is [shorthand](https://observablehq.com/@observablehq/plot-shorthand?collection=@observablehq/plot) for calling [Plot.plot](#plotplotoptions) where the *marks* option specifies this single mark.
725725

726726
```js
727-
{
728-
const mark = Plot.barY(alphabet, {x: "letter", y: "frequency"});
729-
return mark.plot();
730-
}
727+
const mark = Plot.barY(alphabet, {x: "letter", y: "frequency"});
728+
return mark.plot();
731729
```
732730

733731
More commonly this shorthand is written as a single expression:

0 commit comments

Comments
 (0)