Published
Edited
Apr 10, 2020
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
districtShapeData = {
var data = fetchIndiaDistrictShape;
return topojson.feature(data, data.objects[Object.keys(data.objects)[0]]);
}
Insert cell
joinedData = join.hashInnerJoin(
districtShapeData.features,
function(d) {
return d['properties']['NAME_2'];
},
covid19TrackerDistrictdata,
function(d) {
return d['district'];
}
)
Insert cell
unjoinedDataLeft = join.hashLeftSemiJoin(
districtShapeData.features,
function(d) {
return d['properties']['NAME_2'];
},
covid19TrackerDistrictdata,
function(d) {
return d['district'];
}
)
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
import { mapboxgl } from "@planemad/mapbox-gl-cartography"
Insert cell
Insert cell
import { text } from "@jashkenas/inputs"
Insert cell
import { radio } from "@jashkenas/inputs"
Insert cell
import { fitFeatures } from "@planemad/mapbox-gl-cartography"
Insert cell
d3 = require("d3")
Insert cell
topojson = require("topojson-client@3")
Insert cell
join = require('https://bundle.run/lodash-joins@2.0.3')
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