Skip to content

Commit 4ff5ec8

Browse files
committed
example
1 parent ab6e7f6 commit 4ff5ec8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/marks/area.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,11 @@ Plot.plot((() => {
267267

268268
The **line** option draws a line connecting the points with coordinates **x2** and **y2** (the “top of the area”).
269269

270-
Example TK.
270+
:::plot
271+
```js
272+
Plot.areaY(aapl, {x: "Date", y: "Close", fillOpacity: 0.3, line: true}).plot({y: {grid: true}})
273+
```
274+
:::
271275

272276
See also the [ridgeline chart](https://observablehq.com/@observablehq/plot-ridgeline) example.
273277

0 commit comments

Comments
 (0)