Platform
Resources
Pricing
Sign in
Get started
Homer White
Professor of Mathematics and Computer Science at a small liberal arts college in Kentucky, USA.
Workspace
Fork
Public
By
Homer White
Edited
Nov 17, 2023
1
Insert cell
Insert cell
Insert cell
Plot
.
plot
(
{
y
:
{
grid
:
true
,
label
:
`↑ Temperature (°C)`
,
transform
:
(
f
)
=>
(
f
-
32
)
*
(
5
/
9
)
// convert Fahrenheit to Celsius
}
,
marks
:
[
Plot
.
ruleY
(
[
32
]
)
,
// 32°F
Plot
.
lineY
(
sftemp
,
Plot
.
windowY
(
7
,
{
x
:
"date"
,
y
:
"high"
}
)
)
]
}
)
Insert cell
sftemp
=
FileAttachment
(
"sf-temperatures.csv"
)
.
csv
(
{
typed
:
true
}
)
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
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
sftemp
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML