Published
Edited
Mar 19, 2022
Importers
Insert cell
Insert cell
gae = "https://wilessapi.appspot.com"
Insert cell
localhost = "http://localhost:8080"
Insert cell
Insert cell
NUes = 20
Insert cell
ue = hexrandu()
Insert cell
ue.slice(0, Globals.N / 10)
Insert cell
Insert cell
Insert cell
Insert cell
d3.json("https://wilessapi.appspot.com/geom/hexgrid")
Insert cell
Insert cell
Insert cell
freqs = [0, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2]
Insert cell
// Plot.dot(bslocations, { x: "X", y: "Y" }).plot()
Insert cell
// Plot.text(bslocations, { x: "X", y: "Y" }).plot()
Insert cell
Insert cell
Insert cell
mark1 = Plot.dot(bslocations, {
x: "X",
y: "Y",
fill: (v, i) => getColor(v, i),
r: (_, i) => (i < 19 ? 1 : 0),
fillOpacity: 0.5
})
Insert cell
mark2 = Plot.text(bslocations, {
x: "X",
y: "Y",
})
Insert cell
Plot.plot({
marks: [nwgridplot(bslocations, 500 * Math.sqrt(3), "grey"), mark1, mark2],
color: { domain: [0, 1, 2], range: ["green", "red", "blue"] },
r: { domain: [0, 1], range: [8, 15] }
})
Insert cell
hexgrid({ N: 7, ISD: 190 })
Insert cell
Insert cell
Plot.dot(ue, { x: "X", y: "Y" }).plot()
Insert cell
Plot.dot(ue, { x: "X", y: "Y" }).plot()
Insert cell
function hexgrid(args) {
var result = fetch(hexgridurl(args), {
method: "GET",
mode: "cors"
}).then((response) => {
return response.json();
});
return result;
}
Insert cell
Insert cell
vl.value(100)
Insert cell
Plot.plot({
marks: [
nwgridplot(bslocs, isd),
Plot.dot(bslocs, { x: "X", y: "Y" }),
Plot.dot(ue, { x: "X", y: "Y" })
]
})
Insert cell
ues = await hexrandu()
Insert cell
isd = 1732
Insert cell
Insert cell
import { nwgridplot } from "@wiless/cellular"
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