Learn R Programming

echarts4r (version 0.2.0)

e_zoom: Zoom

Description

Zoom on a region.

Usage

e_zoom(e, ..., btn = NULL)

Arguments

e

An echarts4r object as returned by e_charts.

...

Any options, see official documentation

btn

A e_button id.

Examples

Run this code
# NOT RUN {
cars %>% 
  e_charts(dist) %>% 
  e_scatter(speed) %>% 
  e_datazoom() %>% 
  e_zoom(
    dataZoomIndex = 0,
    start = 20,
    end = 40,
    btn = "BUTTON"
  ) %>% 
  e_button("BUTTON", "Zoom in")

# }

Run the code above in your browser using DataLab