Public
Edited
Nov 21, 2024
5 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// TODO: start with dict
// remove shift that turned all coords into positive numbers (maybe)
// capture and save algebraic coordinates
// {
// let data = serialize(centroids);
// DOM.download(data, "bcc.csv", "Download CSV")
// }
// DOM.download(dataToDownload, gridType + ".csv", "Download CSV")
Insert cell
// dataToDownload = serialize(centroids)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
ids = new Set()
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
md`## Imports`
Insert cell
Insert cell
Insert cell
// fixes import issue with json2csv, used by serialize (above)
json2csv = require("json2csv@5.0.7/dist/json2csv.umd.js")
Insert cell
import {form} from "@mbostock/form-input"
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