set_padding: Set Chart Padding

Description Usage Arguments Details Value

View source: R/options.R

Description

Set the padding around a chartjs object

Usage

1
2
3
4
5
6
7
8
set_padding(
  chart,
  all = NULL,
  left = all,
  right = all,
  top = all,
  bottom = all
)

Arguments

chart

A chartjs object.

all

The padding to apply to each side (numeric scalar).

left, right, top, bottom

The padding to apply to each individual side (overrides all) (numeric scalar).

Details

See here for more detailed documentation: https://www.chartjs.org/docs/latest/configuration/layout.html?h=padding.

Value

A modified chartjs object.


KO112/chartjs documentation built on Aug. 6, 2020, 2:35 p.m.