Published
Edited
Dec 31, 2019
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
reportedNumberOfTasks = toInt(instanceFileLines[0])
Insert cell
Insert cell
parsedNumberOfTasks = Object.values(instance).length
Insert cell
instanceDataset = Object.entries(instance).map(([id, task]) => ({
...task,
id: Number(id)
}))
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
calculatedTotalLateness = machinesWithDurations
.map(m => m.durations)
.flat()
.map(d => d.lateness)
.reduce((sum, l) => sum + l)
Insert cell
Insert cell
Insert cell
newlineRegex = /\r?\n|\r/
Insert cell
toInt = s => Number.parseInt(s, 10)
Insert cell
Insert cell
Insert cell
Insert cell
import { fileInput } from "@mbostock/file-input-with-initial-value"
Insert cell
import { form } from "@mbostock/form-input"
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