Platform
Resources
Pricing
Sign in
Get started
Suraj Rai
Learning and making new things for people.
Workspace
Fork
Unlisted
By
Suraj Rai
Edited
Dec 19, 2024
1
Insert cell
Insert cell
Insert cell
Insert cell
reshapedCasualtiesData2
=
casualties
.
flatMap
(
yearData
=>
{
return
Object
.
entries
(
yearData
)
.
slice
(
1
)
.
map
(
(
[
roadUserType
,
count
]
)
=>
(
{
Year
:
yearData
.
Year
,
RoadUserType
:
roadUserType
,
Count
:
+
count
}
)
)
;
}
)
;
Insert cell
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
casualties
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
reshapedcasualtiesData
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
reshapedCasualtiesData2
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