fusionAxis | R Documentation |
https://www.fusioncharts.com/dev/chart-guide/chart-configurations/axes
fusionAxis(
fusionPlot,
xAxisName = "Change X axis",
yAxisName = "Change Y axis",
AxisNameFont = "Arial",
AxisNameFontSize = "12",
AxisNameFontColor = "#999999",
AxisNameFontBold = TRUE,
AxisNameFontItalic = FALSE
)
fusionPlot |
fusionPlot object got by |
xAxisName |
Specify the title of the X-axis of the chart |
yAxisName |
Specify the title of the Y-axis of the chart |
AxisNameFont |
Set the font family of axis |
AxisNameFontSize |
Set the font size (between 0 and 72) of axis |
AxisNameFontColor |
Set the font color of axis in hex code |
AxisNameFontBold |
Set the font style to bold |
AxisNameFontItalic |
Set the font style to italic |
library(fusionchartsR)
df <- data.frame(label = c("Venezuela", "Saudi", "Canada", "Russia"), value = c(290, 260, 180, 115))
df %>%
fusionPlot(x = "label", y = "value", type = "column3d") %>%
fusionAxis(xAxisName = "Countries", yAxisName = "Numbers", AxisNameFontSize = "20") %>%
fusionCustomAxis(xAxisPosition = "top", yAxisPosition = "right") %>%
fusionTheme(theme = "gammel")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.