g2_chart(g2, forcefit = "true", width = 500, height = 500,
animate = TRUE, theme = "default", renderer = "canvas")
Add the following code to your website.
Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.