Add a button to your visualisation.
Usage
e_button(e, id, ..., position = "top", tag = htmltools::tags$button)
Arguments
- e
An
echarts4r
object as returned bye_charts
or a proxy as returned byecharts4rProxy
.- id
A valid CSS id.
- ...
Content of the button, complient with
htmltools
.- position
Position of button,
top
orbottom
.- tag
A Valid
htmltools::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")