Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
Frontend V2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GraphPolaris
Frontend V2
Merge requests
!208
Feat/mapAttributeColoring
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Feat/mapAttributeColoring
feat/mapAttributeColoring
into
main
Overview
14
Commits
12
Pipelines
12
Changes
1
Merged
Vink, S.A. (Sjoerd)
requested to merge
feat/mapAttributeColoring
into
main
7 months ago
Overview
9
Commits
12
Pipelines
12
Changes
1
Expand
Color nodes based on attribute values
0
0
Merge request reports
Viewing commit
ad603aaa
Prev
Next
Show latest version
1 file
+
11
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
ad603aaa
feat(mapAttributeColoring): hidden nodes and parse integers
· ad603aaa
Vink, S.A. (Sjoerd)
authored
7 months ago
libs/shared/lib/vis/visualizations/mapvis/layers/nodelink-layer/NodeLinkOptions.tsx
+
11
−
5
Options
@@ -255,10 +255,13 @@ export function NodeLinkOptions({
}
/>
</
div
>
)
:
nodeSettings
.
colorAttributeType
===
'
categorical
'
?
(
<
div
>
{
graphMetadata
.
nodes
.
types
[
nodeType
]?.
attributes
?.[
nodeSettings
?.
colorAttribute
]?.
values
.
map
(
(
attr
:
string
)
=>
(
)
:
(
nodeSettings
.
colorAttributeType
===
'
categorical
'
&&
nodeSettings
.
colorAttribute
&&
(
<
div
>
{
(
graphMetadata
.
nodes
.
types
[
nodeType
]
as
{
attributes
:
{
[
key
:
string
]:
{
values
:
string
[]
}
}
}
)?.
attributes
?.[
nodeSettings
.
colorAttribute
]?.
values
.
map
((
attr
:
string
)
=>
(
<
div
key
=
{
attr
}
className
=
"flex items-center justify-between"
>
<
p
>
{
attr
}
</
p
>
<
ColorPicker
@@ -267,7 +270,10 @@ export function NodeLinkOptions({
updateLayerSettings
({
nodes
:
{
...
layerSettings
.
nodes
,
[
nodeType
]:
{
...
nodeSettings
,
colorMapping
:
{
...
nodeSettings
.
colorMapping
,
[
attr
]:
val
}
},
[
nodeType
]:
{
...
nodeSettings
,
colorMapping
:
{
...
nodeSettings
.
colorMapping
,
[
attr
]:
val
},
},
},
});
}
}
Loading