Platform
Resources
Pricing
Sign in
Get started
Templates /
Plot: arealineY custom mark
Sign up to use template
Observable
The end-to-end solution for building and hosting better data apps, dashboards, and reports.
Workspace
Public
Edited
May 10, 2023
3 forks
2 stars
Insert cell
Insert cell
function
arealineY
(
data
,
{
color
,
fillOpacity
=
0.1
,
...
options
}
=
{
}
)
{
return
Plot
.
marks
(
Plot
.
ruleY
(
[
0
]
)
,
Plot
.
areaY
(
data
,
{
fill
:
color
,
fillOpacity
,
...
options
}
)
,
Plot
.
lineY
(
data
,
{
stroke
:
color
,
...
options
}
)
)
;
}
Insert cell
Insert cell
arealineY
(
aapl
,
{
x
:
"Date"
,
y
:
"Close"
,
color
:
"steelblue"
}
)
.
plot
(
)
Insert cell
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
arealineY
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML