Skip to contents

Show or hide tooltip.

Usage

e_showtip(e, ..., btn = NULL)

e_hidetip(e, ..., btn = NULL)

Arguments

e

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

...

Any options, see official documentation

btn

A e_button id.

Note

The tooltip must be initialised with e_tooltip for this to work.

Examples

cars |>
  e_charts(dist) |>
  e_scatter(speed) |>
  e_tooltip() |>
  e_hidetip(btn = "btn") |>
  e_button("btn", "Hide tooltip")