Skip to contents

Plot a gauge.

Usage

e_gauge(e, value, name, rm_x = TRUE, rm_y = TRUE, ...)

e_gauge_(e, value, name, rm_x = TRUE, rm_y = TRUE, ...)

Arguments

e

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

value

Value to gauge.

name

Text on gauge.

rm_x, rm_y

Whether to remove x and y axis, defaults to TRUE.

...

Any other option to pass, check See Also section.

Examples

e_charts() |>
  e_gauge(57, "PERCENT")
# timeline data.frame(time = 2015:2017) |> group_by(time) |> e_charts(timeline = TRUE) |> e_gauge( c(57, 23, 65), c("percent", "percentage", "cases") )