fusionAxis {fusionchartsR} | R Documentation |
Adding FusionCharts axis
Description
https://www.fusioncharts.com/dev/chart-guide/chart-configurations/axes
Usage
fusionAxis(
fusionPlot,
xAxisName = "Change X axis",
yAxisName = "Change Y axis",
AxisNameFont = "Arial",
AxisNameFontSize = "12",
AxisNameFontColor = "#999999",
AxisNameFontBold = TRUE,
AxisNameFontItalic = FALSE
)
Arguments
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 |
Examples
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")
[Package fusionchartsR version 0.0.3 Index]