Skip to content

Commit 3c1f883

Browse files
berttmbostock
andauthored
Update getting-started.md - add display (#858)
* Update getting-started.md * semicolon --------- Co-authored-by: Mike Bostock <[email protected]>
1 parent 6b1e943 commit 3c1f883

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ function temperaturePlot(data, {width} = {}) {
482482
Now you can call `temperaturePlot` to display the forecast anywhere on the page:
483483

484484
```js run=false
485-
temperaturePlot(forecast)
485+
display(temperaturePlot(forecast));
486486
```
487487

488488
<div class="tip">JavaScript can be extracted into standalone modules (<code>.js</code> files) that you can <a href="./javascript/imports">import</a> into Markdown. This lets you share code across pages, write unit tests for components, and more.</div>

0 commit comments

Comments
 (0)