c3_chart_size {c3}R Documentation

Chart Size

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

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

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


[Package c3 version 0.3.0 Index]