- graph
g6 graph instance.
- node
Node configuration. Controls the default appearance and behavior of nodes.
Created with node_options()
. Default: NULL.
- edge
Edge configuration. Controls the default appearance and behavior of edges.
Created with edge_options()
. Default: NULL.
- combo
Combo configuration. Controls the default appearance and behavior of combo nodes.
Created with combo_options()
. Default: NULL.
- autoFit
Automatically fit the graph content to the canvas.
Created with auto_fit_config()
. Default: NULL.
- canvas
Canvas configuration for the graph rendering surface.
Created with canvas_config()
. Default: NULL.
- animation
Global animation configuration for graph transitions.
Created with animation_config()
. Default: TRUE.
- autoResize
Whether the graph should automatically resize when the window size changes.
Default: FALSE.
- background
Background color of the graph. If not specified, the background will be transparent.
Default: NULL.
- cursor
Default mouse cursor style when hovering over the graph.
Options include: "default", "pointer", "move", etc.
Default: "default".
- devicePixelRatio
Device pixel ratio for rendering on high-DPI displays. If NULL,
the browser's default device pixel ratio will be used.
Default: NULL.
- renderer
Rendering engine to use. Options: "canvas", "svg", "webgl", or "webgpu".
Default: NULL (G6 will choose the appropriate renderer).
- padding
Padding around the graph content in pixels. Can be a single number for equal padding
on all sides or a vector of four numbers [top, right, bottom, left]
.
Default: NULL.
- rotation
Rotation angle of the entire graph in degrees.
Default: 0.
- x
X-coordinate of the graph's center relative to the container.
Default: NULL (will use container center).
- y
Y-coordinate of the graph's center relative to the container.
Default: NULL (will use container center).
- zoom
Initial zoom level of the graph. 1 represents 100% (original size).
Default: 1.
- zoomRange
Minimum and maximum allowed zoom levels, specified as a vector
with two elements: c(min_zoom, max_zoom).
Default: c(0.01, 10).
- theme
Color theme for the graph. Either light
or dark
or a list
representing a custom theme:
see https://g6.antv.antgroup.com/en/manual/theme/custom-theme.
- ...
Other configuration parameters.