amAxisLabels: Axis labels

View source: R/axisLabels.R

amAxisLabelsR Documentation

Axis labels

Description

Create a list of settings for the labels of an axis.

Usage

amAxisLabels(
  color = NULL,
  fontSize = 18,
  fontWeight = "normal",
  fontFamily = NULL,
  rotation = 0,
  formatter = NULL
)

amAxisLabelsCircular(
  color = NULL,
  fontSize = 14,
  fontWeight = "normal",
  fontFamily = NULL,
  radius = NULL,
  relativeRotation = NULL
)

Arguments

color

color of the labels

fontSize

size of the labels

fontWeight

font weight of the labels, it can be "normal", "bold", "bolder", "lighter", or a number in seq(100, 900, by = 100)

fontFamily

font family of the labels

rotation

rotation angle

formatter

this option defines the format of the axis labels; this should be a number formatting string for a numeric axis, and a list created with amDateAxisFormatter for a date axis

radius

radius in percentage

relativeRotation

relative rotation angle

Value

A list of settings for the labels of an axis.

Note

A color can be given by the name of a R color, the name of a CSS color, e.g. "silver" or "fuchsia", an HEX code like "#ff009a", a RGB code like "rgb(255,100,39)", or a HSL code like "hsl(360,11,255)".


rAmCharts4 documentation built on Sept. 22, 2022, 5:05 p.m.