vasturiano / 3d-force-graph

3D force-directed graph component using ThreeJS/WebGL
https://vasturiano.github.io/3d-force-graph/example/large-graph/
MIT License
4.67k stars 825 forks source link

continuous scale node color #656

Open hannaschmueck opened 10 months ago

hannaschmueck commented 10 months ago

Hi! I would like to use a normalised continuous colour scale to map node colour i.e. to degree or betweenness centrality. I have access to these values as node attributes, but I could not find an easy way to make this work. Is there a systematic way to implement d3.scale or chroma.js solutions for achieving this?

See example from Cytoscape (Coninuous Mapping on BetweennessCentrality)

image