Published
Edited
Apr 17, 2020
1 fork
Insert cell
Insert cell
Insert cell
projection = d3.geoMiller().fitSize([width, height], { type: "Sphere" })
Insert cell
// Image Source: https://www.flickr.com/photos/vitroids/2811419692/
image = d3
.image("https://farm4.staticflickr.com/3138/2811419692_d101c2e926_b.jpg", {
crossOrigin: "anonymous"
})
.then(d => Object.assign(d, { style: "max-height:100px" }))
Insert cell
glproj = `
lambda = x;
phi = 2.5 * atan(exp(0.8 * y)) - 0.625 * pi;
`
Insert cell
height = (width * 0.65) | 0
Insert cell
import { reglCanvas, createDrawCommand, regl } with {
width,
height,
projection,
glproj,
image
} from "@fil/phytoplankton"
Insert cell
d3 = require("d3-fetch", "d3-geo", "d3-geo-projection", "d3-timer")
Insert cell
import { checkbox, radio } from "@jashkenas/inputs"
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