zoom.c3: Add C3 Zoom

Description Usage Arguments Value See Also Examples

View source: R/zoom.R

Description

Enable chart Zoom.

Usage

1
2
3
4
5
6
zoom(c3, enabled = TRUE, rescale = NULL, extent = NULL,
  onzoom = NULL, onzoomstart = NULL, onzoomend = NULL, ...)

## S3 method for class 'c3'
zoom(c3, enabled = TRUE, rescale = NULL, extent = NULL,
  onzoom = NULL, onzoomstart = NULL, onzoomend = NULL, ...)

Arguments

c3

c3 htmlwidget object

enabled

boolean default is TRUE

rescale

boolean rescale axis when zooming

extent

numeric vector

onzoom

character js function, wrap character or character vector in JS()

onzoomstart

character js function, wrap character or character vector in JS()

onzoomend

character js function, wrap character or character vector in JS()

...

additional options passed to the zoom object

Value

c3

See Also

Other c3: RColorBrewer, c3, grid, legend, region, subchart, tooltip, xAxis

Examples

1
2
3
4
data.frame(a = abs(rnorm(20) * 10),
           b = abs(rnorm(20) * 10)) %>%
     c3() %>%
     zoom()

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

Related to zoom.c3 in c3...