Interface NonFlatNeovisConfig

non flat version of the configuration (without Symbols) look at the normal config for more information

Example

{
containerId: 'viz',
nonFlat: true,
neo4j: {
serverUrl: 'bolt://localhost:7687',
serverUser: 'neo4j',
serverPassword: 'gland-presentation-worry'
},
visConfig: {
nodes: {
shape: 'square'
},
edges: {
arrows: {
to: {enabled: true}
}
},
},
labels: {
Character: {
property: {
label: 'pagerank',
group: 'community'
}
cypher: {
value: "MATCH (n) WHERE id(n) = $id RETURN n.size"
},
function: {
title: (node) => {
return viz.nodeToHtml(node, undefined);
}
}
}
},
relationships: {
INTERACTS: {
property: {
value: 'weight'
}
function: {
title: (edge) => {
return viz.nodeToHtml(edge, undefined);
}
}
}
},
initialCypher: 'MATCH (n)-[r]->(m) RETURN n,r,m'
}

Hierarchy

Properties

consoleDebug?: boolean

Should output debug messages to console

Default

false
containerId: string

Html id of the element you want Neovis to render on

dataFunction?: DataFunctionType

function to get fetch data instead of neo4j driver

it needs to return a list of records

example in examples/simple-dataFunction-example.html

defaultLabelConfig?: NonFlatLabelConfig
defaultRelationshipsConfig?: NonFlatRelationsipConfig
groupAsLabel?: boolean

Should group be the label

Default

true
initialCypher?: string

The Cypher query that will get the data

labels?: Record<string, NonFlatLabelConfig>
neo4j?: Driver | Neo4jConfig

Neo4j Driver instance or configuration to make one

nonFlat: true

Tells Neovis is the config is flat or not

Default

false
relationships?: Record<string, NonFlatRelationsipConfig>
serverDatabase?: string

database name you want to connect to

Default

neo4j
visConfig?: Options

Vis network config to override neovis defaults

Link

https://visjs.github.io/vis-network/docs/network/#options

Generated using TypeDoc