Learn R Programming

echarts4r (version 0.2.0)

pie_action: Select & Unselect Pie

Description

Actions related to e_pie.

Usage

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

e_pie_unselect(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 {
mtcars %>% 
  head() %>% 
  dplyr::mutate(model = row.names(.)) %>% 
  e_charts(model) %>% 
  e_pie(carb) %>% 
  e_pie_select(dataIndex = 0)

# }

Run the code above in your browser using DataLab