Published
Edited
Aug 11, 2020
Importers
Insert cell
Insert cell
Insert cell
Insert cell
// selected_artist = {
// var selected_artist = geo_artists.filter(d => d.artist == artist_select)[0];
// selected_artist.listeners = selected_artist.countries[0].listeners;
// selected_artist.url = selected_artist.countries[0].url;
// return selected_artist;
// } ** This is Jonathans code
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
topojson = require("topojson-client@3")
Insert cell
// shapefile = d3.json(
// "https://cdn.jsdelivr.net/npm/world-atlas@2/countries-110m.json"
// )
shapefile = FileAttachment("countryJSONfile").json()
Insert cell
Insert cell
Insert cell
Insert cell
// world = d3.json(
// "https://cdn.jsdelivr.net/npm/world-atlas@2/countries-110m.json"
// )
world = FileAttachment("countryJSONfile").json()
Insert cell
Insert cell
Insert cell
Insert cell
geo_artists
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
user_data
Insert cell
songs_by_countries
Insert cell
songData("Mr Brightside", "The Killers")
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