Published
Edited
Apr 16, 2021
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
recipesGroupedByCategory = group(recipes).by(d=>d.RecipeCategory).run()
Insert cell
topCategories = recipesGroupedByCategory.filter(d=>d.values.length>100)
Insert cell
sweetCats=new Set(["Dessert","Bar Cookie","Drop Cookies","Pie","Candy","Frozen Desserts","Scones","Tarts"])
Insert cell
sweets=recipesGroupedByCategory.filter(d=>sweetCats.has(d.key))
Insert cell
savory = recipesGroupedByCategory.filter(d=>!sweetCats.has(d.key))
Insert cell
Insert cell
md`## Data Source`
Insert cell
recipes=d3.csv("https://raw.githubusercontent.com/DoTorr/UCF/main/recipes.csv",d3.autoType)
Insert cell
Insert cell
d3 = require("d3@6")
Insert cell
import {group} from "@bumbeishvili/utils"
Insert cell
import { table } from "@gampleman/table"
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