Public
Edited
Feb 6, 2023
Insert cell
Insert cell
locations_tab
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
typesStyle = {
return ["match", ["string", ["get", "type"]], ...colorsmap.flat(), "#AAAAAA"];
}
Insert cell
colorsmap = Array.from(new Set(locations_tab.map((d) => d.type))).map(
(d, i) => [d, d3.schemeSet1[i]]
)
Insert cell
Insert cell
Insert cell
Insert cell
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