fusionAxis: Adding FusionCharts axis

Description Usage Arguments Examples

View source: R/fusionAxis.R

Description

https://www.fusioncharts.com/dev/chart-guide/chart-configurations/axes

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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 fusionPlot()

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

1
2
3
4
5
6
7
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")

fusionchartsR documentation built on Dec. 21, 2021, 1:07 a.m.