Public
Edited
Nov 28, 2023
1 fork
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Video_Games_Sales_as_at_22_Dec_2016.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
imdb-videogames.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
Insert cell
plotData = d3.rollups(gameSales, v => v.length, d => d.Platform)
Insert cell
Plot.plot({
marks: [
Plot.barY(plotData, {
x: d => d[0],
y: d => d[1],
fill: d => d[0],
sort: {x: "y", reverse: true},
}),
Plot.ruleY([0])
]
})
Insert cell
Insert cell
plotData1 = d3.rollups(gameSales, v => v.length, d => d.Genre)
Insert cell
Plot.plot({
marks: [
Plot.barY(plotData1, {
x: d => d[0],
y: d => d[1],
fill: d => d[0],
sort: {x: "y", reverse: true},
}),
Plot.ruleY([0])
]
})
Insert cell
Insert cell
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.
Learn more