There are special global settings that can change all of the fonts on the chart. These options are in Chart.defaults.font. The global font settings only apply when more specific options are not included in the config.

cjs_font(
  family = "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",
  size = 12,
  style = "normal",
  weight = NULL,
  lineHeight = 1.2
)

Arguments

family

string, "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif", Default font family for all text, follows CSS font-family options.

size

number, 12, Default font size (in px) for text. Does not apply to radialLinear scale point labels.

style

string, 'normal', Default font style. Does not apply to tooltip title or footer. Does not apply to chart title. Follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).

weight

string, undefined, Default font weight (boldness). (see MDN).

lineHeight

number|string, 1.2, Height of an individual line of text (see MDN).

Value

a list