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 markis often paired with a [line](./line.md) and [rule](./rule.md) mark to accentuate the topline and baseline.
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.
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.
328
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.
0 commit comments