eload: Data loading options

Description Usage Arguments Details Examples

View source: R/options.R

Description

Customise the data loading options.

Usage

1
2
eload(p, text = "loading", effect = "bubble", x = "center",
  y = "center", progress = NULL, ...)

Arguments

p

an echart object.

text

the loading text that appears when the chart is set into the loading state, use \n for new line.

effect

loading effect, see details for valid values.

x, y

position, takes left, right, center.

progress

specifies the current progress [0~1]. Applicable to specific effects.

...

any other parameters, i.e.:textStyle.

Details

Valid effect values:

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
# no data
df <- data.frame(x = NA, y = NA) %>%
  dplyr::filter(!is.na(x))

df %>%
  echart(x) %>%
  eline(y)

df %>%
  echart(x) %>%
  eline(y) %>%
  eload(effect = "ring", text = "loading data...")

df %>%
  echart(x) %>%
  eline(y) %>%
  eload(effect = "dynamicLine")

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