Published
Edited
Mar 1, 2020
Fork of Debate Times
1 fork
3 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
lineData = candidates.map(e => {
return flatData.filter(d => d.candidate === e);
})
Insert cell
flatData = debateData.map(d => d.data).flat()
Insert cell
Insert cell
Insert cell
processedData = data.map(d => {
return {
debate: +d.Debate,
candidate: d.Candidate,
time: +d.Time,
offset: 0,
cIdx: candidates.indexOf(d.Candidate)
}})
Insert cell
candidates = Array.from(new Set(data.map(d => d.Candidate)))
Insert cell
Insert cell
Insert cell
import {radio} from "@jashkenas/inputs"
Insert cell
html`<style>
.y-axis line {
opacity: 0.25;
}
</style>`
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