ZoomCharts Documentation
NetChart.settings.layout
Adjustable settings to get desired net chart layout style and animation while and before interacting.
Properties
Advanced chart settings. Be advised that they are subject to change, backwards compatibility is not guaranteed.
Properties
Whether to fit network in aspect ratio of chart viewport. Useful for small networks that always fit in chart and are not intended to be zoomed in / out.
For hierarchy layout, whether to attempt to center nodes under their parent
Whether to perform global layout on network changes. Use it for better node placement at the cost of chart slowdown on network changes.
View section details
For dynamic layout, settings for gravity that pulls all nodes together.
Desired horizontal distance between neighboring nodes with different parents in the hierarchy layout. By default 2*nodeSpacing
Maximum time to wait for incremental layout to be completed. Note that bigger value will get nicer placement on network updates at the cost of longer delay.
Maximum time to wait for initial layout to be completed. Note that bigger value will get nicer placement of big networks at the cost of long initial delay.
Dynamic layout can be stopped faster if no more movement is detected.
Dynamic layout is stopped after user is inactive for this time.
Layout mode.
Valid values:- dynamic - incrementally update whole network when user moves nodes
- radial - Position graph nodes in concentric rings, starting form initial node.
- hierarchy - Position graph nodes top-down, starting from initial node
- static - other nodes stay fixed while user moves nodes.
Desired distance between nodes.
Function executed by category hierarchy layout when it detects a link that creates a cycle in the graph
Parameters
For hierarchy layout, clockwise rotation of the tree(s), measured in degrees. 0 = top-down tree; 90 = right-left tree; 180 = bottom-up tree, etc. Also affects placement of multiple trees the same way.
Desired vertical distance between node rows in the hierarchy layout.
For hierarchy layout, scale the hierarchy on X, mainly used for mirroring and flipping
For hierarchy layout, scale the hierarchy on Y, mainly used for mirroring and flipping
For hierarchy layout, whether to sort trees during layout
For hierarchy layout, whether to sort the nodes during layout
For radial layout, whether to lay out the first level in two rings, if necessary.