Platform
Resources
Pricing
Sign in
Get started
Andreas Åkre Solberg
Workspace
Fork
Public
By
Andreas Åkre Solberg
Edited
Feb 14, 2023
Insert cell
Insert cell
Insert cell
Insert cell
JSON
.
stringify
(
metadata
[
0
]
,
undefined
,
2
)
Insert cell
metadata
=
fetch
(
"https://kudaf-core.paas2.uninett.no/api/v1/catalog/datasets/"
)
.
then
(
(
d
)
=>
d
.
json
(
)
)
Insert cell
metadata
.
map
(
(
d
)
=>
[
d
.
measureVariable
.
label
,
unitType
(
d
)
,
target
(
d
)
]
)
Insert cell
Insert cell
unitType
=
(
d
)
=>
{
return
d
.
identifierVariables
.
map
(
(
d
)
=>
d
.
keyType
.
name
)
;
}
Insert cell
target
=
(
d
)
=>
{
if
(
!
d
.
measureVariable
.
hasOwnProperty
(
"keyType"
)
)
return
null
;
return
d
.
measureVariable
.
keyType
.
name
;
}
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
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
metadata
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
unitType
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
target
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML