Public
Edited
Mar 24, 2020
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// Data quality process
data.forEach(function(d, i) {
d.Rank = +d.Rank;
d.Year = +d.Year;
d.NA_Sales = +d.NA_Sales;
d.EU_Sales = +d.EU_Sales;
d.JP_Sales = +d.JP_Sales;
d.Other_Sales = +d.Other_Sales;
d.Global_Sales = +d.Global_Sales;
});

Insert cell
// Display the first five rows
printTable(data.slice(0, 10))
Insert cell
vl.markBar()
.data(data.slice(0, 50))
.encode(
vl.y().average('Global_Sales'),
vl.x().fieldN('Rank')
).render()
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