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 area mark has three constructors: [areaY](#areaY) for when the baseline and topline share *x* values, as in a time-series area chart where time goes right→ (or ←left); [areaX](#areaX) for when the baseline and topline share *y* values, as in a time-series area chart where time goes up↑ (or down↓); and lastly the rarely-used [area](#area) where the baseline and topline share neither *x* nor *y* values.
22
22
23
-
The **area line mark** <VersionBadgepr="2407" /> is a variant of the area mark that accentuates the topline. It is often paired with a [rule](./rule.md) mark for the baseline.
23
+
The **line**option <VersionBadgepr="2407" /> strokes the topline. It is often paired with a [rule](./rule.md) mark to denote the baseline.
The **interval** option is recommended to “regularize” sampled data; for example, if your data represents timestamped temperature measurements and you expect one sample per day, use "day" as the interval.
306
306
307
-
The **areaY** mark draws the region between a baseline (*y1*) and a topline (*y2*) as in an area chart. When the baseline is *y* = 0, the *y* channel can be specified instead of *y1* and *y2*.
307
+
The **areaY** mark draws the region between a vertically-separated baseline (*y1*) and topline (*y2*) as in an area chart. When the baseline is *y* = 0, the *y* channel can be specified instead of *y1* and *y2*. If the **line** option <VersionBadgepr="2407" /> is true, the **stroke** applies exclusively to the topline, and the **fillOpacity** defaults to 0.3.
The **interval** option is recommended to “regularize” sampled data; for example, if your data represents timestamped temperature measurements and you expect one sample per day, use "day" as the interval.
324
324
325
-
## areaLineY(*data*, *options*) {#areaLineY}
326
-
327
-
```js
328
-
Plot.areaLineY(aapl, {x:"Date", y:"Close"})
329
-
```
330
-
331
-
A variant of [areaY](#areaY) that accentuates the topline.
332
-
333
-
## areaLineX(*data*, *options*) {#areaLineX}
334
-
335
-
```js
336
-
Plot.areaLineX(aapl, {y:"Date", x:"Close"})
337
-
```
338
-
339
-
A variant of [areaX](#areaX) that accentuates the topline.
325
+
The **areaX** mark draws the region between a horizontally-separated baseline (*x1*) and topline (*x2*) as in a vertical area chart. When the baseline is *x* = 0, the *x* channel can be specified instead of *x1* and *x2*. If the **line** option <VersionBadgepr="2407" /> is true, the **stroke** applies exclusively to the topline, and the **fillOpacity** defaults to 0.3.
0 commit comments