if (interactive()) {
g6(jsonUrl = "https://assets.antv.antgroup.com/g6/radial.json") |>
g6_layout(
radial_layout(
unitRadius = 100,
linkDistance = 200
)
) |>
g6_behaviors(
"zoom-canvas",
drag_element()
)
}
Run the code above in your browser using DataLab