c_hart: Initialise

Description Usage Arguments

View source: R/charter.R

Description

Initialise a chart.js chart

Usage

1
2
3
c_hart(data = NULL, ..., width = "100%", height = NULL, elementId = NULL)

chart(data = NULL, ..., width = "100%", height = NULL, elementId = NULL)

Arguments

data

Data.frame holding data to plot.

...

Chart aesthetics, see caes.

width, height

Must be a valid CSS unit (like '100%', '400px', 'auto') or a number, which will be coerced to a string and have 'px' appended.

elementId

Valid CSS id of chart to create.


JohnCoene/charter documentation built on Feb. 20, 2022, 11:07 p.m.