Skip to content

Commit f2d437c

Browse files
committed
a bit more marginLeft
1 parent bbecf3e commit f2d437c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/why-plot.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ How about [transforms](./features/transforms.md)? Munging data, not assigning vi
6060

6161
:::plot https://observablehq.com/@observablehq/plot-groupy-transform
6262
```js
63-
Plot.barX(penguins.map((d) => d.species), Plot.groupY()).plot()
63+
Plot.barX(penguins.map((d) => d.species), Plot.groupY()).plot({marginLeft: 60})
6464
```
6565
:::
6666

@@ -90,7 +90,7 @@ Plot uses this technique internally: the [axis mark](./marks/axis.md) and [box m
9090

9191
:::plot https://observablehq.com/@observablehq/plot-penguins-horizontal-box-plot
9292
```js
93-
Plot.boxX(penguins, {x: "body_mass_g", y: "species"}).plot()
93+
Plot.boxX(penguins, {x: "body_mass_g", y: "species"}).plot({marginLeft: 60, y: {label: null}})
9494
```
9595
:::
9696

@@ -99,9 +99,9 @@ Plot’s transforms are composable, too. For example, to combine the [group tran
9999
:::plot https://observablehq.com/@observablehq/plot-transforms-are-composable
100100
```js
101101
Plot.plot({
102-
color: {
103-
legend: true
104-
},
102+
marginLeft: 60,
103+
y: {label: null},
104+
color: {legend: true},
105105
marks: [
106106
Plot.barX(penguins, Plot.stackX(Plot.groupY({x: "count"}, {y: "species", fill: "sex"})))
107107
]

0 commit comments

Comments
 (0)