Platform
Resources
Pricing
Sign in
Get started
Jurian
Prototyper / data visualization enthousiast
Workspace
Fork
Published
By
Jurian
Edited
Oct 13, 2021
1 fork
1
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.
Try it for free
Learn more
Fork
View
Export
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
chbAms
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
chbAmsA11y
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
diffPositions
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
R
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML