Platform
Resources
Pricing
Sign in
Get started
Sacramento State
Workspace
Fork
Public
By
Ricardo Olivares Bravo
Edited
May 29
1
Insert cell
Insert cell
Insert cell
import
{
vl
}
from
"@vega/vega-lite-api-v5"
Insert cell
import
{
printTable
}
from
'@uwdata/data-utilities'
Insert cell
df
=
FileAttachment
(
"best_selling_switch_games.csv"
)
.
csv
(
)
Insert cell
best_selling_switch_games.csv
Filter
Columns
Sort
Slice
Save
Type Table, then Shift-Enter. Ctrl-space for more options.
Insert cell
vl
.
markBar
(
)
.
data
(
df
)
.
encode
(
vl
.
x
(
)
.
fieldN
(
'publisher'
)
.
sort
(
{
field
:
'copies_sold'
,
order
:
'descending'
}
)
,
vl
.
y
(
)
.
fieldQ
(
'copies_sold'
)
,
vl
.
tooltip
(
'publisher'
)
)
.
render
(
)
Insert cell
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
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
df
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
best_selling_switch_games
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
File attachments
best_selling_switch_games.csv
CSV
Databases
Filter
Column
Operator
Columns
Sort
Column
Direction
Descending
Ascending
Slice
From
Start
To
End
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML