c3_chart_size: Chart Size

Description Usage Arguments Value Examples

View source: R/options.R

Description

Modify the size of the chart within the htmlwidget area. Generally charts size to the div in which they are placed. These options enable finer scale sizing with the div

Usage

1
2
c3_chart_size(c3, left = NULL, right = NULL, top = NULL,
  bottom = NULL, width = NULL, height = NULL, ...)

Arguments

c3

c3 htmlwidget object

left

integer padding pixels

right

integer padding pixels

top

integer padding pixels

bottom

integer padding pixels

width

integer pixels

height

integer pixels

...

additional options passed to the padding and size objects

Value

c3

Examples

1
2
3
data.frame(a = c(1,2,3,2), b = c(2,4,1,5)) %>%
  c3() %>%
  c3_chart_size(width = 600, height = 200)

c3 documentation built on March 16, 2020, 5:07 p.m.