Platform
Docs
Resources
Blog
Pricing
Sign in
Sign up
Toph Tucker
Workspace
Fork
Public
Testing / Helping
By
Toph Tucker
Edited
1 star
Insert cell
Insert cell
Insert cell
Plot
.
plot
(
{
marginLeft
:
150
,
marks
:
[
Plot
.
barX
(
data
,
{
x
:
"POP_2015"
,
y
:
"Metro"
}
)
,
]
}
)
Insert cell
Insert cell
Insert cell
Plot
.
plot
(
{
y
:
{
axis
:
false
}
,
marks
:
[
Plot
.
barX
(
data
,
{
x
:
"POP_2015"
,
y
:
"Metro"
,
fill
:
"gray"
}
)
,
Plot
.
text
(
data
,
{
y
:
"Metro"
,
text
:
"Metro"
,
dx
:
4
,
textAnchor
:
"start"
,
frameAnchor
:
"left"
,
fill
:
"currentColor"
,
stroke
:
"white"
}
)
]
}
)
Insert cell
Insert cell
Plot
.
plot
(
{
marginLeft
:
18
,
y
:
{
axis
:
false
}
,
marks
:
[
Plot
.
barX
(
data
,
{
x
:
"POP_2015"
,
y
:
"Metro"
,
fill
:
"gray"
}
)
,
Plot
.
axisY
(
{
textAnchor
:
"start"
,
dx
:
16
,
tickSize
:
0
,
textStroke
:
"white"
}
)
]
}
)
Insert cell
Insert cell
data
=
d3
.
shuffle
(
citywages
)
.
slice
(
0
,
20
)
Insert cell
Insert cell
Insert cell
Plot
.
plot
(
{
x
:
{
reverse
:
true
,
labelAnchor
:
"left"
}
,
y
:
{
axis
:
"right"
,
label
:
null
}
,
marginLeft
:
30
,
marginRight
:
350
,
marks
:
[
Plot
.
barX
(
data
,
{
x
:
"POP_2015"
,
y
:
"Metro"
}
)
]
}
)
Insert cell
Insert cell
Plot
.
plot
(
{
marginTop
:
6
,
height
:
data
.
length
*
28
,
y
:
{
axis
:
false
,
paddingInner
:
0.7
}
,
marks
:
[
Plot
.
barX
(
data
,
{
x
:
"POP_2015"
,
y
:
"Metro"
}
)
,
Plot
.
text
(
data
,
{
y
:
"Metro"
,
text
:
"Metro"
,
dy
:
-
10
,
textAnchor
:
"start"
,
frameAnchor
:
"left"
}
)
]
}
)
Insert cell
Insert cell
Plot
.
plot
(
{
marginTop
:
6
,
height
:
data
.
length
*
22
,
y
:
{
axis
:
false
}
,
marks
:
[
Plot
.
ruleY
(
data
,
{
x
:
"POP_2015"
,
y
:
"Metro"
,
strokeWidth
:
2
}
)
,
Plot
.
text
(
data
,
{
y
:
"Metro"
,
text
:
"Metro"
,
dy
:
-
6
,
textAnchor
:
"start"
,
frameAnchor
:
"left"
}
)
]
}
)
Insert cell
Insert cell
Inputs
.
table
(
data
,
{
height
:
"auto"
,
columns
:
[
"Metro"
,
"POP_2015"
]
,
width
:
400
,
layout
:
"auto"
}
)
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