Platform
Resources
Pricing
Sign in
Get started
Matteo Abrate
Web Datavis researcher by day, Indie Game designer by night
Workspace
Fork
Published
Official Data about Italy
By
Matteo Abrate
Edited
May 26, 2020
Insert cell
Insert cell
md
`TBD: documentation and links`
Insert cell
Insert cell
age2class
=
(
a
)
=>
a
==
0
?
0
:
Math
.
floor
(
Math
.
min
(
a
,
100
)
/
5
+
1
)
Insert cell
Insert cell
age2class
(
15
)
Insert cell
age2class
(
0
)
Insert cell
age2class
(
102
)
Insert cell
Insert cell
class2age_interval
=
(
c
)
=>
c
==
0
?
[
0
,
1
]
:
c
==
1
?
[
1
,
5
]
:
c
==
21
?
[
100
,
Infinity
]
:
[
(
c
-
1
)
*
5
,
c
*
5
]
Insert cell
Insert cell
class2age_interval
(
3
)
Insert cell
class2age_interval
(
0
)
Insert cell
class2age_interval
(
1
)
Insert cell
class2age_interval
(
21
)
Insert cell
Insert cell
class2age_label
=
(
c
)
=>
{
if
(
c
==
0
)
return
'0'
if
(
c
==
21
)
return
'100+'
let
interval
=
class2age_interval
(
c
)
return
`${
interval
[
0
]
}-${
interval
[
1
]
-
1
}`
}
Insert cell
Insert cell
class2age_label
(
3
)
Insert cell
class2age_label
(
0
)
Insert cell
class2age_label
(
1
)
Insert cell
class2age_label
(
21
)
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
Edit
Add comment
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
age2class
Add comment
Copy import
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
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
class2age_interval
Add comment
Copy import
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
Add comment
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
class2age_label
Add comment
Copy import
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
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML