This function sets the theme for an existing g6 graph instance
g6_set_theme(graph, theme)
The g6_proxy object (invisibly), allowing for method chaining.
A g6_proxy object created with g6_proxy
.
A character string representing the theme to apply to the graph.
There are 2 internal predefined themes: light
and dark
.
Alternatively, you can pass a custom theme object that conforms to the G6 theme specifications,
according to the documentation at https://g6.antv.antgroup.com/en/manual/theme/custom-theme.
g6_proxy()