Published
Edited
Dec 6, 2020
Importers
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
planet = (drawing, orbit, saltos, radius, orientation) =>
`<g transform="rotate(${deg(orbit)})">`
+ `<svg x="${p((radius - 1) / 2)}" y="-50%" viewBox="-100,-100,200,200">`
+ `<g transform="rotate(${deg(orientation - saltos * orbit)})" class="planet">${drawing}</g>`
+ `</svg>`
+ `</g>`
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
css = html`<style>
.crosshair {
stroke:black;
stroke-width:.05%;
fill:none;
}
.planet {
fill:green;
font-family:AvenirNextCondensed-UltraLight;
font-weight: 600;
text-anchor:middle;
alignment-baseline:central;
}
</style>`
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
import {Scrubber} from "@mbostock/scrubber"
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