Skip to content

Commit 36e621e

Browse files
authored
Update CHANGELOG.md
1 parent cbb827c commit 36e621e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ Plot.line(bls, Plot.map({stroke: Plot.window({k: 2, reduce: "difference"})}, {x:
1414

1515
The new *clip* mark option enables clipping to the plot frame. For example, this can be used to clip overlapping areas and produce a horizon chart of hourly traffic patterns.
1616

17-
<img src="./img/horizon.png" width="640" alt="a horizon chart of unemployment rates by metro area; increases are shown in red, and decreases in blue">
17+
<img src="./img/horizon.png" width="640" alt="a horizon chart of traffic patterns over time">
1818

1919
```js
2020
d3.ticks(0, max, bands).map(t => Plot.areaY(traffic, {x: "date", y: d => d.value - t, fill: t, clip: true}))
2121
```
2222

2323
Plot can now generate helpful warnings for common mistakes. Warnings ⚠️ are indicated in the top-right corner of the plot; open your browser’s developer console to read the warnings. For example, if you use data with date strings resulting in an *ordinal* scale rather than the desired *utc* scale, Plot will advise you to parse strings to dates.
2424

25-
<img src="./img/warning.png" width="640" alt="a horizon chart of unemployment rates by metro area; increases are shown in red, and decreases in blue">
25+
<img src="./img/warning.png" width="640" alt="a line chart with an unreadable ordinal x-axis due to incorrect data typing">
2626

2727
```js
2828
Plot.line(aapl, {x: "Date", y: "Close"}) // 🌶 Oops, Date is a string!
@@ -34,7 +34,7 @@ We will add [more warnings](https://github.com/observablehq/plot/issues/755) in
3434

3535
The [text mark](./README.md#text) now supports automatic wrapping for easier annotation. The new **lineWidth** option specifies the desired length of a line in ems. The line breaking, wrapping, and text metrics implementations are all rudimentary, but they should be acceptable for text that is mostly ASCII. (For more control, you can hard-wrap text manually.) The **monospace** option now provides convenient defaults for monospaced text.
3636

37-
<img src="./img/wrap.png" width="640" alt="a snippet of Moby Dick, demonstrating Plot’s line wrapping implementation">
37+
<img src="./img/wrap.png" width="640" alt="a snippet of Moby Dick demonstrating line wrapping">
3838

3939
```js
4040
Plot.text([mobydick], {dx: 6, dy: 6, fontSize: 12, lineWidth: 80, lineHeight: 1.2, frameAnchor: "top-left", monospace: true})

0 commit comments

Comments
 (0)