Skip to contents

Add a button to your visualisation.

Usage

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

Arguments

e

An echarts4r object as returned by e_charts or a proxy as returned by echarts4rProxy.

id

A valid CSS id.

...

Content of the button, complient with htmltools.

position

Position of button, top or bottom.

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")