Public
Edited
Oct 31, 2023
1 fork
5 stars
Insert cell
Insert cell
Plot.plot({
projection: "albers",
insetBottom: 20,
insetTop: 20,
marks: [
Plot.sphere({fill: "black"}),
Plot.dot(haunted_sm, {x: "longitude", y: "latitude", r: 6, fill: "red", opacity: .3, stroke: "red", strokeOpacity: .3}),
Plot.dot(haunted_sm, {x: "longitude", y: "latitude", r: 4, fill: "orange", opacity: .3, stroke: "orange", strokeOpacity: .3}),
Plot.dot(haunted_sm, {x: "longitude", y: "latitude", r: 1, fill: "white"}),
Plot.text(['Haunted places\nin the United States'],{x:-105, y: 26, dx:-220, dy:-60, fontSize: 30, fill: "white", stroke: "#fc6600", opacity: 0.6, lineHeight: 1.2, fontStyle: "italic", fontWeight: "Bold"}),
Plot.text([`Data: data.world | Design: Deepsha Menghani\nThreads: @IandLoveandData | Mastodon: @Deepsha`], {x:-105, y: 27, dx:-220, dy:30, frameAnchor: "middle", fontSize: 14, fontStyle: "oblique", lineWidth: 70, textAnchor: "middle", lineHeight: 1.2, clip: false, fill: "#ccc", opacity: .6})
],
height: 700,
width: 1200,
})
Insert cell
Insert cell
haunted_sm.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
import {states} from "ff0a83b495637684"
Insert cell
import {nation} from "ff0a83b495637684"
Insert cell
import {Scrubber} from "@mbostock/scrubber"
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