Description Usage Arguments Details Examples
mark line
1 2 3 4 5 |
p |
an echart object. |
which |
serie to mark lines of, takes |
data |
data of mark points, points to mark. |
clickable |
whether marked points are clickable. |
symbol |
symbol, see details for valid values. |
symbolSize |
size of symbol. |
symbolRotate |
symbol rotation angle, i.e.: |
large |
set to |
smooth |
whether to smooth line. |
precision |
decimal precision. |
bundling |
line bundling. |
z, zlevel |
first and second grade cascading control, the higher z the closer to the top. |
... |
any other options to pass to mark points. |
Valid values for symbol
:
circle
rectangle
triangle
diamond
emptyCircle
emptyRectangle
emptyTriangle
emptyDiamond
heart
droplet
pin
arrow
star
1 2 3 4 5 6 7 8 9 10 11 12 | df <- data.frame(x = c("Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"),
radio = c(320, 332, 301, 334, 390, 330, 320),
social = c(120, 132, 101, 134, 90, 230, 210))
df %>%
echart(x) %>%
ebar(radio, stack = "grp") %>%
ebar(social, stack = "grp") %>%
emark_line(data = list(list(type = "max")), clickable = FALSE) %>%
etooltip(axisPointer = list(type = "shadow")) %>%
etoolbox_full() %>%
etoolbox_magic(type = list("tiled", "stack", "line", "bar"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.