Public
Edited
Mar 22, 2023
Insert cell
Insert cell
navio(
USSenateVotingData.map((v) =>
v.members.member.map((m) => ({ ...m, n: v.vote_number }))
).flat()
)
Insert cell
flatUSSenateVotingData.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
senators = USSenateVotingData[0].members.member.map((m) => {
const copy = { ...m, id: m.member_full };
delete copy.vote_cast;
return copy;
})
Insert cell
Insert cell
Insert cell
network = ({ nodes: senators, links: commonVotesLinks })
Insert cell
Insert cell
USSenateVotingData
Insert cell
import { ForceGraph } from "@john-guerra/force-directed-graph"
Insert cell
import { getCommonConnections } from "@john-guerra/get-common-connections"
Insert cell
import { Swatches } from "@d3/color-legend"
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