etoolbox_mark: Add toolbox feature mark button

Description Usage Arguments Examples

View source: R/toolbox.R

Description

Enable marking chart.

Usage

1
2
3
4
etoolbox_mark(p, show = TRUE, title = list(mark = "Mark", markUndo = "Undo",
  markClear = "Clear"), lineStyle = list(color = "#1e90ff", typed = "dashed",
  width = 2, shadowColor = "rgba(0,0,0,0)", shadowBlur = 5, shadowOffsetX = 3,
  shadowOffsetY = 3))

Arguments

p

an echart object.

show

whether to show mark.

title

mark button title.

lineStyle

style of marked line.

Examples

1
2
3
4
5
mtcars %>%
  echart(qsec) %>%
  ebar(mpg) %>%
  etoolbox() %>%
  etoolbox_mark()

JohnCoene/echarts documentation built on May 22, 2021, 6:18 p.m.