alter_options: Alter Chart Options

Description Usage Arguments Value

Description

See here for more detailed documentation: https://www.chartjs.org/docs/latest/general/options.html.

Usage

1
2
3
4
5
6
7
8
alter_options(
  chart,
  ...,
  animDur = 400,
  hoverDelay = 0,
  resizeAnimDur = 0,
  tension = 0.4
)

Arguments

chart

A chartjs object.

...

Additional named arguments to add to the options.

animDur

How long the initial plot building animation should take (in milliseconds) (numeric scalar).

hoverDelay

How long to wait after hovering before showing a tooltip (in milliseconds) (numeric scalar).

resizeAnimDur

How long the plot resizing animation should take (in milliseconds) (numeric scalar).

tension

The default tension to use for lines between the points (0 for straight lines, 0.4 is default) (numeric scalar).

Value

A modified chartjs object.


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