Public
Edited
May 29
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
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.
Learn more