This function sets the theme for an existing g6 graph instance
Arguments
- graph
A g6_proxy object created with
g6_proxy
.- theme
A character string representing the theme to apply to the graph. There are 2 internal predefined themes:
light
anddark
. 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.