Published
Edited
Mar 19, 2020
4 stars
Insert cell
Insert cell
Insert cell
schedule = yaml`
- 7:45 AM: Wake up
- 8:00 AM: Crow bar to remove from bed
- 8:15 AM: Breakfast
- 8:30 AM: Dance party
- 9:00 AM: Morning meeting
- 9:15 AM: Chinese
- 10:00 AM: Snack
- 10:15 AM: Math
- 11:15 AM: Ancient civilization project
- 12:00 PM: Lunch
- 12:30 PM: Inquiry challenge
- 1:00 PM: English
- 2:00 PM: Video chat with classmates
- 2:30 PM: Chinese reading
- 3:30 PM: Reflection and reading
- 4:30 PM: Dog walk
- 5:00 PM: Free time
- 6:00 PM: Dinner
- 6:30 PM: Dance party
- 7:00 PM: Games, movies, madness
- 7:15 PM: Bedtime unknown!!!
`.flatMap(Object.entries)
.map(([time, activity]) => ({time: parse(time), activity}))
Insert cell
afternoon = d => 12 < (d.time.getHours()+ d.time.getMinutes()/60)
&& (d.time.getHours()+d.time.getMinutes()/60) <= 18
Insert cell
theta = d3.scaleTime()
.domain([parse('12:00 AM'), parse('12:00 PM')])
.range([0, 2 * Math.PI])
Insert cell
w = Math.min(width, 900)
Insert cell
h = w
Insert cell
parse = d3.timeParse('%I:%M %p')
Insert cell
import { yaml } from '@71/yaml'
Insert cell
d3 = require('d3-array@2', 'd3-scale@3', 'd3-selection@1', 'd3-shape@1', 'd3-time-format@2')
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