Published
Edited
May 4, 2021
1 fork
Insert cell
md`# India Recipe Map`
Insert cell
import {vl} from '@vega/vega-lite-api'
Insert cell
import { aq, op } from '@uwdata/arquero'
Insert cell
import {printTable} from '@uwdata/data-utilities'
Insert cell
d3 = require("d3@5", "d3-geo-projection@2")
Insert cell
states = await FileAttachment("states_india.geojson").json()
Insert cell
states
Insert cell
vl.markGeoshape({fill: "#e0e0e0", stroke: "#f7f7f7", strokeWidth: 1})
.data(states.features)
.project(vl.projection('mercator'))
.encode(
vl.tooltip([vl.fieldN('properties.st_nm'), vl.fieldN('properties.state_code')])
)
.render()
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