Published
Edited
Mar 16, 2018
Insert cell
Insert cell
// Must have this at the start of your file, to enable you to use the d3.json call to get data
d3 = require("d3-fetch@1")
Insert cell
Insert cell
spaceAgencyData = d3.json("https://launchlibrary.net/1.3/agency/NASA")
Insert cell
next5LaunchData = d3.json("https://launchlibrary.net/1.3/launch/next/5")
Insert cell
Insert cell
earthquakeData = d3.json("https://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson&starttime=2014-01-01&endtime=2014-01-02")
Insert cell
Insert cell
exchangeRates = d3.json( "https://api.fixer.io/latest?base=GBP" )
Insert cell
Insert cell
bikewise = d3.json( "https://bikewise.org:443/api/v2/incidents?page=1&proximity_square=100" )
Insert cell
Insert cell
{ var date = new Date(1521160910000);
return date
}
Insert cell
Insert cell
airData = d3.json("https://api.carbonintensity.org.uk/intensity")
Insert cell
Insert cell
police = d3.json( "https://data.police.uk/api/crimes-street-dates" )
Insert cell
crimeDataLondon = d3.json( "https://data.police.uk/api/crimes-street/all-crime?lat=51.495142&lng=-0.134778&date=2017-01")
Insert cell
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