Public
Edited
Nov 5, 2024
5 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
//_.sampleSize(data.filter(d => d.genres.includes(keywordsGenre.name)), 10).map(d => d.description).join('\n')
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Inputs.table(data)
Insert cell
data
Insert cell
data.forEach(d => d.full_price = +d.full_price*0.01)
Insert cell
data.forEach(d => d.year_meta = d.published_meta ? +d.published_meta.split('-')[0] : 'missing')
Insert cell
data.forEach(d => d.year = d.published_store ? +d.published_store.split('-')[0] : 'missing')
Insert cell
data = [...data0, ...data1, ...data2, ...data3, ...data4, ...data5]
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// Plot.plot({
// width: 1000,
// height: 400,
// marginLeft: 50,
// marginTop: 60,
// marginBottom: 80,
// style: {
// color: graphTextCol,
// fontSize: graphFontSize,
// fontFamily: graphFontFamily,
// },
// x: {
// domain: [0, 100],
// label: 'avg critic score, Metascore',
// nice: true,
// ticks: 4
// },
// y: {
// domain: [0, 100],
// label: 'avg user score, Metascore',
// nice: true,
// ticks: 4
// },
// color: {
// type: 'linear',
// range: ['#ccc', '#8338ec']
// },
// marks: [
// //Plot.density(data, {x: "meta_score", y: "meta_uscore", stroke: "steelblue", strokeWidth: 1}),
// Plot.dot(data, { x: "meta_score", y: "meta_uscore", title: 'name', fill: '#000', stroke: '#000', strokeOpacity: 1, r: 5, }),
// //Plot.rect(data, Plot.bin({fillOpacity: "count"}, {x: "meta_score", y: "meta_uscore", })),
// Plot.linearRegressionY(data, {x:"meta_score", y: "meta_uscore", stroke: "#8338ec", strokeWidth: 4, ci: 0.95}),
// ]
// })
Insert cell
// Plot.plot({
// width: 1200,
// height: 600,
// marginBottom: 50,
// marginLeft: 40,
// marginTop: 40,
// style: {
// color: graphTextCol,
// fontSize: graphFontSize,
// fontFamily: graphFontFamily,
// },
// color: {
// domain: ['normal', 'low-score-many-games', 'lots-of-unrated'],
// range: ["#ddd", "#f72585", '#2ec4b6']
// },
// x: {
// inset: 50,
// domain: [0, 100]
// //type: 'log'
// },
// y: {
// //type: 'log'
// domain: [0, 100]
// },
// marks: [
// Plot.dot(developers, {
// x: 'avg_store_uscore', y: 'num_games', fill: 'outlier', stroke: '#000', strokeWidth: 0.5, r:5, opacity: 0.8 }),
// Plot.text(developers, {
// filter: d => d.outlier === 'lots-of-unrated',
// x: d => d.avg_store_uscore,
// y: d => d.num_games+2,
// text: 'developers',
// fill: '#2ec4b6',
// fontWeight: 600,
// fontSize: 10,
// }),
// ]
// })
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