library(fusionchartsR)
df <- data.frame(label = c("Venezuela", "Saudi", "Canada", "Russia"), value = c(290, 260, 180, 115))
df %>%
fusionPlot(x = "label", y = "value", type = "doughnut2d") %>%
fusionLegend(legendCaption = "LegendCaption", legendCaptionFontSize = "24") %>%
fusionTheme(theme = "fusion")
Run the code above in your browser using DataLab