Platform
Resources
Pricing
Sign in
Get started
Frederik H.
Workspace
Fork
Public
By
Frederik H.
Edited
Jan 16, 2023
Insert cell
Insert cell
function
RegressionPlot
(
data
)
{
const
linearRegression
=
d3
.
regressionLinear
(
)
.
x
(
(
d
)
=>
d
.
xCoord
)
.
y
(
(
d
)
=>
d
.
yCoord
)
.
domain
(
[
0
,
10
]
)
;
}
Insert cell
{
const
line
=
d3
.
line
(
)
.
x
(
d
=>
d
.
date
)
.
y
(
d
=>
d
.
value
)
;
return
line
;
}
Insert cell
{
data
=
[
]
}
Insert cell
d3
Insert cell
function
abc
(
)
{
let
def
=
1
;
print
(
def
)
;
}
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
RegressionPlot
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
abc
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML