You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
16
16
17
-
<imgsrc="./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
+
<imgsrc="./img/horizon.png"width="640"alt="a horizon chart of traffic patterns over time">
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.
24
24
25
-
<imgsrc="./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
+
<imgsrc="./img/warning.png"width="640"alt="a line chart with an unreadable ordinal x-axis due to incorrect data typing">
26
26
27
27
```js
28
28
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
34
34
35
35
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.
36
36
37
-
<imgsrc="./img/wrap.png"width="640"alt="a snippet of Moby Dick, demonstrating Plot’s line wrapping implementation">
37
+
<imgsrc="./img/wrap.png"width="640"alt="a snippet of Moby Dick demonstrating line wrapping">
0 commit comments