Platform
Solutions
Resources
Pricing
Sign in
Sign up
Observable
The end-to-end solution for building and hosting better data apps, dashboards, and reports.
Workspace
Fork
Public
By
Mike Bostock
Edited
Apr 5, 2024
Insert cell
Insert cell
{
const
change
=
Plot
.
valueof
(
aapl
,
(
d
,
i
,
data
)
=>
d
.
Close
-
data
[
0
]
.
Close
)
;
const
absmax
=
d3
.
max
(
change
,
Math
.
abs
)
;
return
Plot
.
plot
(
{
y
:
{
domain
:
[
-
absmax
,
+
absmax
]
}
,
marks
:
[
Plot
.
ruleY
(
[
0
]
)
,
Plot
.
lineY
(
aapl
,
{
x
:
"Date"
,
y
:
change
}
)
]
}
)
;
}
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
Fork
View
Export
Edit
Pin
Add comment
Select
Duplicate
Copy link
Embed
Delete
Unpin
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML