neo4j-contrib / neovis.js

Neo4j + vis.js = neovis.js. Graph visualizations in the browser with data from Neo4j.
Apache License 2.0
1.59k stars 324 forks source link

Neo4j Graph Visualization Design issues #275

Closed AntonyNitheesh closed 2 years ago

AntonyNitheesh commented 2 years ago

My graph is generated using neovis.js and Vue but it doesnot showing the names in nodes and all nodes are in same color. I need different colors for nodes and labels to be displayed

AntonyNitheesh commented 2 years ago

image

thebestnom commented 2 years ago

I really need to add issue template that asks for config 😅

AntonyNitheesh commented 2 years ago

Can u share an example for fixing that

thebestnom commented 2 years ago

https://github.com/neo4j-contrib/neovis.js/issues/272

AntonyNitheesh commented 2 years ago
labels: {
                    Paper: {
                    label: "title",         
                    [NeoVis.NEOVIS_ADVANCED_CONFIG]:{
                        static:{
                            group:"title"
                        }
                    }
                    },
                    Author: {
                    label: "name",         
                    [NeoVis.NEOVIS_ADVANCED_CONFIG]:{
                        static:{
                            group:"name"
                        }
                    }
                },
AntonyNitheesh commented 2 years ago

image

AntonyNitheesh commented 2 years ago

How can I change the colors and shapes of nodes

thebestnom commented 2 years ago

Are you inporting NeoVis as *?

AntonyNitheesh commented 2 years ago

Noo just Neovis

AntonyNitheesh commented 2 years ago

After importing Neovis as * and changing Neovis(config) to Neovis.Neovis(config) the color changes but the shape also changes to oval but I need a circle shape is that possible. image

AntonyNitheesh commented 2 years ago

How to change the size and shape of nodes using neovis.js 2.0