Published
Edited
Sep 25, 2020
1 fork
41 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
getJson = async url => {
if (tmcwCache[url] && apiToken == 'tmcw') return tmcwCache[url];
const json = await (await fetch(url, { headers })).json();
return json;
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
sfGeoJSON = ({
type: "FeatureCollection",
features: sfRuns.map(({ map: { summary_polyline } }) => polyline.toGeoJSON(summary_polyline))
})
Insert cell
Insert cell
rotation = [-122.4585, 37.79].map(n => -n)
Insert cell
scale = 500000
Insert cell
path = d3.geoPath().projection(d3.geoAzimuthalEqualArea()
.scale(scale)
.rotate(rotation)
.precision(0.1))
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

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