Platform
Solutions
Resources
Pricing
Sign in
Sign up
Charles Redmond
Workspace
Fork
Published
Fall20DS
By
Charles Redmond
Edited
Oct 19, 2020
Fork of
Template
1 star
Fall20DS
Template
Javascript Objects
For Loops
Returning
Pushing into an Array
SVG Containers
Circles
Rectangles
Lines
Groups
Rotation
Scaling
Making a Barbell
Paths
Randomness
Arrays of Random Numbers
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
Plotting Exercise 2
x and y Axes
More on Axes
Sliders
Select Box
Radio Buttons
Sliders in Action
Select in Action
Radio Buttons in Action
Functions
Click Events
If Statements
Click Events (Toggle)
Mouseover/Mouseout Events
Dragging Events
Plotting Points
Horizontal and Vertical Lines
Slope of a Segment
Equation of a Line
Here's x, what's y?
Vertical Distance to a Line or Curve
A Way To Think About Regression
How Close is the Line?
Overfitting
Test Sets
Data Sets
Data Analysis
Logistic Regression
Classification
Final Problem 1 Template
Friday Lesson
More with Groups
Scales
Programming Tutorial
Regression Practice
Great Pumpkin Template
Spider Web Template
Another Baseball Example
Linear Regression
Classification
Linear Regression (another example)
Final Problem 1 Practice (11 AM Section)
Final Illustrations
Insert cell
Insert cell
svg
=
{
const
svg
=
html
`<svg id = "svg"></svg>`
const
container
=
d3
.
select
(
svg
)
for
(
let
i
=
0
;
i
<
50
;
i
=
i
+
1
)
{
const
x
=
math
.
randomInt
(
0
,
600
)
const
y
=
math
.
randomInt
(
0
,
300
)
const
s
=
math
.
random
(
0
,
.5
)
makeFace
(
container
,
x
,
y
,
s
)
}
return
svg
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
math
=
require
(
'mathjs@6.2.1/dist/math.js'
)
Insert cell
One platform
to build and deploy the best data apps
Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
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
makeFace
Edit
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
math
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML