Platform
Resources
Pricing
Sign in
Get started
Matt Bernabeu
Workspace
Fork
Published
In-Class Stuff
By
Matt Bernabeu
Edited
Sep 14, 2020
Fork of
Paths with D3
•
1 fork
In-Class Stuff
Groups
Rotation and Scaling
Making a Barbell
Paths
Randomness
Arrays of Random Numbers
D3
Intro to D3
Grouping with D3
Rotation with D3
Barbell Again
Saving the Selection
Random Circles
Random Circles 2
Random Circles 3
Paths with D3
Paths with D3 Part 2
Scales
Axes
Plotting Exercise 1
X and Y Axes
More on Axes
Radio Buttons
Select Box
Radio Buttons in Action
Functions
Click Events
If Statements
Mouseover/Mouseout Events
Data Analysis: Japanese Cars (Incomplete)
Data Analysis: Detroit Tigers
Data Analysis: Detroit Tigers (Example of Proper Linear Regression and RMSE)
Logistic Regression
Insert cell
Insert cell
svg
=
{
const
svg
=
html
`<svg id = "svg"></svg>`
const
container
=
d3
.
select
(
svg
)
const
pathData
=
d3
.
line
(
)
.
x
(
d
=>
d
.
x
)
.
y
(
d
=>
d
.
y
)
(
data
)
container
.
append
(
"path"
)
.
attr
(
"stroke"
,
"black"
)
.
attr
(
"fill"
,
"none"
)
.
attr
(
"d"
,
pathData
)
return
svg
}
Insert cell
data
=
[
{
x
:
300
,
y
:
150
}
,
{
x
:
600
,
y
:
0
}
,
{
x
:
300
,
y
:
300
}
,
{
x
:
0
,
y
:
0
}
,
]
Insert cell
Insert cell
Insert cell
Insert cell
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
Compare fork
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
svg
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
data
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
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
d3
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML