Add a button to your visualisation.

e_button(e, id, ..., position = "top", tag = htmltools::tags$button)

Arguments

e

An echarts4r object as returned by e_charts.

id

A valid CSS id.

...

Content of the button, complient with htmltools.

position

Position of button, top or bottom.

tag

A Valid tags function.

Examples

iris %>% group_by(Species) %>% e_charts(Sepal.Length) %>% e_line(Sepal.Width) %>% e_line(Petal.Length) %>% e_highlight(series_name = "setosa", btn = "myBtn") %>% e_button("myBtn", "highlight stuff")