Platform
Resources
Pricing
Sign in
Get started
claromes
Workspace
Fork
Public
Data Visualization Fundamentals and Best Practices
By
claromes
Edited
Apr 11, 2023
Data Visualization Fundamentals and Best Practices
Data Visualization Fundamentals #2
Data Visualization Fundamentals #3
Data Visualization Fundamentals #4
Data Visualization Fundamentals #5
Data Visualization Fundamentals Assignment
Insert cell
Insert cell
Insert cell
viewof
inset
=
Inputs
.
range
(
[
-
1
,
10
]
,
{
label
:
"Amount"
,
step
:
1
,
value
:
1
}
)
Insert cell
Plot
.
plot
(
{
marks
:
[
Plot
.
barY
(
alphabet
,
{
x
:
"letter"
,
y
:
"frequency"
,
sort
:
{
x
:
"y"
,
reverse
:
true
}
,
insetLeft
:
inset
,
insetRight
:
inset
}
)
,
Plot
.
ruleY
(
[
0
]
)
]
}
)
Insert cell
Insert cell
Insert cell
viewof
letter
=
Inputs
.
range
(
[
0
,
25
]
,
{
label
:
"Letter Pos"
,
step
:
1
}
)
Insert cell
Plot
.
plot
(
{
marks
:
[
Plot
.
barY
(
alphabet
,
{
x
:
"letter"
,
y
:
"frequency"
,
fill
:
(
d
,
i
)
=>
(
i
===
letter
?
"steelblue"
:
"lightgray"
)
,
sort
:
{
x
:
"y"
,
reverse
:
true
}
}
)
,
Plot
.
ruleY
(
[
0
]
)
]
}
)
Insert cell
Insert cell
Plot
.
plot
(
{
y
:
{
grid
:
true
}
,
marks
:
[
Plot
.
barY
(
[
1
/
26
]
,
{
fill
:
"orange"
,
fillOpacity
:
0.4
}
)
,
//Plot.ruleY([1 / 26], { stroke: "orange" }),
Plot
.
barY
(
alphabet
,
{
x
:
"letter"
,
y
:
"frequency"
,
sort
:
{
x
:
"y"
,
reverse
:
true
}
}
)
,
Plot
.
ruleY
(
[
0
]
)
]
}
)
Insert cell
Insert cell
import
{
power_vs_temperature
}
from
"@observablehq/guide-electricity"
Insert cell
import
{
Plot
}
from
"@mkfreeman/plot-tooltip"
Insert cell
Plot
.
plot
(
{
marks
:
[
Plot
.
dot
(
power_vs_temperature
,
{
x
:
"temperature"
,
y
:
"power"
,
fill
:
"city"
}
)
]
,
color
:
{
domain
:
[
"Seattle"
,
"Los Angeles"
]
,
legend
:
true
}
,
marginLeft
:
50
}
)
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
inset
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
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
letter
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
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
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML