tooltip_action: Show & Hide Tooltip

tooltip_actionR Documentation

Show & Hide Tooltip

Description

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

echarts4r documentation built on July 9, 2023, 7:26 p.m.