neodash
neodash copied to clipboard
No colours in Sankey Chart
Hi,
- NeoDash version: 2.4.4
- Neo4j Database version: 5.15.0
Colours in Sankey Charts are not working, I have tried to select different colour sets but this did not change the colours from the (fallback?) grey scales e.g.:
the used relationship is an apoc.create.vRelationship
call {
return case
when size($neodash_sector_name) > 0 then $neodash_sector_name
else collect {match(s:Sector) return s.name}
end as sector_names
,case
when size($neodash_corporation_name) > 0 then $neodash_corporation_name
else $neodash_company
end as co_names
}
match (co:Corporation) where co.name in co_names
match (co)-[co_cat:IN_CATEGORY]->(cat:CorpCat)-[cat_s:IN_SECTOR]->(s:Sector) where s.name in sector_names
with distinct co,s, apoc.text.join(collect(cat.name),'|') as cats
with co,s
,case
when size(cats) > 0 then apoc.create.vRelationship(co,'IN_SECTOR',{categories:cats,weight:toInteger(co._node_size)},s)
end as co_s
return co,co_s,s
Kind Regards, Sirko