Description Usage Arguments Examples
Add legend
1 2 3 4 5 6 | elegend(p, legend, show = TRUE, zlevel = 0, z = 4,
orient = "horizontal", x = "center", y = "top",
backgroundColor = "rgba(0,0,0,0)", borderColor = "#ccc",
borderWidth = 0, padding = 5, itemGap = 10, itemWidth = 20,
itemHeight = 14, formatter = NULL, selectedMode = TRUE,
selected = NULL, textStyle, ...)
|
p |
an echart object. |
legend |
legend. |
show |
wether to show legend. |
z, zlevel |
first and second grade cascading control, the higher z the closer to the top. |
orient |
orientation, |
x |
x alignment, |
y |
y alignment, |
backgroundColor |
background color. |
borderColor |
border color. |
borderWidth |
border width. |
padding |
legend padding. |
itemGap |
gap between legend items. |
itemWidth, itemHeight |
width and height of items. |
formatter |
default formatter. |
selectedMode |
selection mode. |
selected |
default selected state. |
textStyle |
textStyle. |
... |
any other option to pass to legend. |
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.