-
Notifications
You must be signed in to change notification settings - Fork 3
style
style is an optional dictionary capable of storing all generalized data about the GraphJSON. All values passed to a graph visualization through the top level style parameters will be overwritten by the style parameter for each node or edge for individual objects in the GraphJSON. For instance, if {style: {nodeStyles: {fill: "blue" is passed, the default color fill for all nodes in the graph will be "blue". Therefore, if an individual node defines nodeStyle: {fill: "red",...}, that specific node will display with a red fill.
As another example, if style: {nodeStyles: {locked: "true",...} all nodes will be stationary after the initial layout, however any nodes that explicitly pass {nodeStyles: {locked: "false",...} as a parameter will remain draggable by the user and will move with successive layout computations.
style is a dictionary that is capable of holding the following optional top level keys:
nodeStylesedgeStyleslayoutgraphStyles