Customise the legend.

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

Examples

mtcars %>% head() %>% dplyr::mutate(model = row.names(.)) %>% e_charts(model) %>% e_pie(carb) %>% e_legend(FALSE)