Learn R Programming

echarts4r (version 0.1.1)

e_legend: Legend

Description

Customise the legend.

Usage

e_legend(e, show = TRUE, type = c("plain", "scroll"), ...)

Arguments

e

An echarts4r object as returned by e_charts.

show

Set to FALSE to hide the legend.

type

Type of legend, plain or scroll.

...

Any other option to pass, check See Also section.

See Also

https://ecomfe.github.io/echarts-doc/public/en/option.html#legend

Examples

Run this code
# NOT RUN {
mtcars %>% 
  head() %>% 
  dplyr::mutate(model = row.names(.)) %>% 
  e_charts(model) %>% 
  e_pie(carb) %>% 
  e_legend(FALSE)

# }

Run the code above in your browser using DataLab