Published unlisted
Edited
Jul 12, 2022
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
chart = ForceGraph(graph, {
nodeId: d => d.id,
nodeGroup: d => d.group,
nodeTitle: d => `${d.id}\n${d.group}`,
linkStrokeWidth: l => Math.sqrt(l.value),
width,
height:800,
invalidation // a promise to stop the simulation when the cell is re-run
})
Insert cell
graph = FileAttachment("SocialNetwork20220601.json").json()
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
import {howto} from "@d3/example-components"
Insert cell
import {svgBackgroundImage} from "@luciyer/svg-defs-background-image"
Insert cell
import {rangeSlider} from "@bumbeishvili/utils"
Insert cell
import {slider as slide} from "@lorenries/inputs"
Insert cell
import {Legend, Swatches} from "@d3/color-legend"
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