Published
Edited
Oct 13, 2021
1 fork
Insert cell
# chb widths
Insert cell
chbAms = FileAttachment(
"ExportCHB20211008013017.xml.gz-quaysselection-amsterdam.json"
).json()
Insert cell
Insert cell
// alle widhts gevuld
chbAmsA11y.filter(
(d) =>
d.narrowestpassagewidth &&
d.boardingpositionwidth &&
d.alightingpositionwidth
)
Insert cell
Insert cell
Insert cell
Plot.plot({
marks: [
Plot.rectY(
chbAmsA11y,
Plot.binX({ y: "count" }, { x: "alightingpositionwidth" })
)
]
})
Insert cell
chbAmsA11y.filter((d) => d.boardingpositionwidth < d.alightingpositionwidth)
Insert cell
diffPositions = chbAmsA11y.map(
(d) =>
Math.max(d.boardingpositionwidth, d.alightingpositionwidth) -
Math.min(d.boardingpositionwidth, d.alightingpositionwidth)
)
Insert cell
Plot.plot({
marks: [Plot.rectY(diffPositions, Plot.binX({ y: "count" }))]
})
Insert cell
chbAmsA11y.filter(
(d) =>
d.boardingpositionwidth < d.narrowestpassagewidth ||
d.alightingpositionwidth < d.narrowestpassagewidth
)
Insert cell
chbAmsA11y.filter((d) => d.boardingpositionwidth == 0.01)
Insert cell
chbAmsA11y.filter((d) => d.alightingpositionwidth == 0.01)
Insert cell
chbAmsA11y.filter(
(d) => d.alightingpositionwidth == 0.01 && d.boardingpositionwidth == 0.01
)
Insert cell
chbAmsA11y.filter(
(d) => d.alightingpositionwidth == 0.01 || d.boardingpositionwidth == 0.01
)
Insert cell
R = require("ramda")
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