Description Usage Arguments Value References Examples
When an echart object is generated, you can modify it by setting dataZoom using
%>%
.
1 2 3 4 |
chart |
|
show |
logical. Show the dataZoom control if TRUE. If you want to remove dataZoom from the echarts object, set it NULL. |
pos |
the clock-position of dataZoom, refert to |
range |
A vector of |
width |
The width of the dataZoom bar. Default 20px. |
fill |
fillerColor of the dataZoom bar, in character |
handle |
handleColor of the dataZoom bar, in character |
bgColor |
background color. Default transparent ('rgba(0,0,0,0)') |
dataBgColor |
background color of the data thumbnail (1st series). Default '#eee'. |
showDetail |
Logical, if show the details when zooming. Defaul TRUE. |
realtime |
Logical, if realtime display the changes when zooming. Default FALSE. |
zoomLock |
Logical, if the zoom range is locked. Deafult FALSE. |
... |
Elipsis |
A modified echart object
http://echarts.baidu.com/echarts2/doc/option.html#title~dataZoom
1 2 3 4 5 6 7 8 9 10 | ## Not run:
g = iris %>% echartR(x=Sepal.Width, y=Petal.Width, series=Species, type='scatter')
g %>% setDataZoom(fill=rgba(c(col2rgb('gold'), 0.3)),
handle=rgba(c(col2rgb('gold'), 1)))
g1 = iris %>% echartR(x=Sepal.Width, y=Petal.Width, t=Species, type='scatter')
g1 %>% setDataZoom(fill=rgba(c(col2rgb('lightgreen'), 0.2)),
handle=rgba(c(col2rgb('darkgreen'), 0.5)))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.