Platform
Solutions
Resources
Pricing
Sign in
Sign up
Templates /
Plot: Anchor tick labels
Sign up to use template
Observable
The end-to-end solution for building and hosting better data apps, dashboards, and reports.
Workspace
Unlisted
Edited
Apr 24, 2023
2 forks
Insert cell
Insert cell
Plot
.
plot
(
{
marginTop
:
0
,
marginLeft
:
4
,
x
:
{
ticks
:
4
,
label
:
"Yield (kg) →"
}
,
marks
:
[
Plot
.
barX
(
[
42
,
17
,
32
]
,
{
y
:
[
"🍌 banana"
,
"🍎 apple"
,
"🍐 pear"
]
}
)
,
Plot
.
axisY
(
{
textAnchor
:
"start"
,
fill
:
"white"
,
dx
:
14
}
)
]
}
)
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
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML