Platform
Resources
Pricing
Sign in
Get started
Sergio Rodríguez Gómez
Workspace
Fork
Public
By
Sergio Rodríguez Gómez
Edited
May 15, 2023
Fork of
Cluster map
•
1 fork
2
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Inputs
.
table
(
data
)
Insert cell
categoriesTable
Filter
Columns
Sort
Slice
Save
Type Table, then Shift-Enter. Ctrl-space for more options.
Insert cell
Insert cell
chart
.
zoomTo
(
coord
.
x
,
coord
.
y
,
10
)
Insert cell
Insert cell
Insert cell
data
.
filter
(
d
=>
d
.
cluster
===
0
)
Insert cell
x
=
d3
.
scaleLinear
(
)
.
domain
(
[
-
100
,
100
]
)
.
range
(
[
0
,
width
]
)
Insert cell
xAxis
=
(
g
,
x
)
=>
g
.
attr
(
"transform"
,
`translate(0,${
height
})`
)
.
call
(
d3
.
axisTop
(
x
)
.
ticks
(
12
)
)
.
call
(
g
=>
g
.
select
(
".domain"
)
.
attr
(
"display"
,
"none"
)
)
Insert cell
y
=
d3
.
scaleLinear
(
)
.
domain
(
[
-
70
,
70
]
)
.
range
(
[
height
,
0
]
)
Insert cell
yAxis
=
(
g
,
y
)
=>
g
.
call
(
d3
.
axisRight
(
y
)
.
ticks
(
12
)
)
.
call
(
g
=>
g
.
select
(
".domain"
)
.
attr
(
"display"
,
"none"
)
)
Insert cell
z
=
d3
.
scaleOrdinal
(
)
.
domain
(
categoriesDomain
)
.
range
(
d3
.
schemeCategory10
)
Insert cell
categoriesDomain
=
[
...
new
Set
(
categoriesTable
.
map
(
d
=>
d
.
category
)
)
]
.
sort
(
)
Insert cell
findCategory
=
cluster
=>
categoriesTable
[
cluster
]
.
category
Insert cell
height
=
600
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
Compare fork
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
wordFocus
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
chart
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
coord
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
Add comment
Select
Duplicate
Copy link
Embed
Delete
Cells
categoriesTable
File attachments
all_vectors_aahd_proceedings_size320_window3_sg0_mincount3@1.csv
CSV
all_vectors_hippos2_size320_window3_sg0_mincount3_k20.csv
CSV
Databases
Filter
Column
Operator
Columns
Sort
Column
Direction
Descending
Ascending
Slice
From
Start
To
End
makeChart
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
data
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
categoriesTable
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
x
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
xAxis
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
y
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
yAxis
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
z
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
categoriesDomain
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
findCategory
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
height
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML