Published
Edited
Jun 30, 2022
Insert cell
Insert cell
Insert cell
dotplotSwe = Plot.dot(top50Combined, {
x: "valence",
y: "popularity",
stroke: "scope"
}).plot()
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
top50Sweden = getPlaylistAudioFeatures("37i9dQZEVXbLoATJ81JYXz");
Insert cell
Insert cell
top50GlobalFeatures = getFeatures(top50Global);
Insert cell
top50SwedenFeatures = getFeatures(top50Sweden)
Insert cell
top50Combined = {
let global = top50GlobalFeatures.map((i) => ({ scope: "Global", ...i }));
let swe = top50SwedenFeatures.map((i) => ({ scope: "Sweden", ...i }));
return global.concat(swe);
}
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