Platform
Resources
Pricing
Sign in
Contact us
Charles Redmond
Workspace
Fork
Published
Plotting
By
Charles Redmond
Edited
Jul 17, 2021
2 stars
Insert cell
Insert cell
Insert cell
Plot
.
plot
(
{
x
:
{
domain
:
[
0
,
10
]
,
label
:
"x"
}
,
y
:
{
domain
:
[
0
,
10
]
,
label
:
"y"
}
,
marks
:
[
Plot
.
ruleX
(
[
0
]
)
,
Plot
.
ruleY
(
[
0
]
)
,
Plot
.
dot
(
a
,
{
fill
:
"tomato"
,
stroke
:
"black"
,
r
:
5
}
)
]
}
)
Insert cell
b
=
[
{
x
:
3
,
y
:
7
}
]
Insert cell
Plot
.
plot
(
{
x
:
{
domain
:
[
0
,
10
]
,
label
:
"x"
}
,
y
:
{
domain
:
[
0
,
10
]
,
label
:
"y"
}
,
marks
:
[
Plot
.
ruleX
(
[
0
]
)
,
Plot
.
ruleY
(
[
0
]
)
,
Plot
.
dot
(
b
,
{
x
:
"x"
,
y
:
"y"
,
fill
:
"tomato"
,
stroke
:
"black"
,
r
:
5
}
)
]
}
)
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
a
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
b
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML