neo4j-labs / neodash

NeoDash - a Dashboard Builder for Neo4j
https://neo4j.com/labs/neodash/
Apache License 2.0
397 stars 129 forks source link

No colours in Sankey Chart #824

Open sirko-schroeder opened 4 months ago

sirko-schroeder commented 4 months ago

Hi,

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.:

image

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